mirror of
https://github.com/boostorg/uuid.git
synced 2026-01-19 04:42:16 +00:00
GCC 4.8 has ::max_align_t, not std::max_align_t
This commit is contained in:
@@ -4,14 +4,24 @@
|
|||||||
|
|
||||||
#include <boost/uuid/uuid.hpp>
|
#include <boost/uuid/uuid.hpp>
|
||||||
#include <boost/core/lightweight_test.hpp>
|
#include <boost/core/lightweight_test.hpp>
|
||||||
|
#include <boost/config.hpp>
|
||||||
|
#include <boost/config/workaround.hpp>
|
||||||
#include <cstddef>
|
#include <cstddef>
|
||||||
|
|
||||||
using namespace boost::uuids;
|
using namespace boost::uuids;
|
||||||
|
|
||||||
int main()
|
int main()
|
||||||
{
|
{
|
||||||
|
#if BOOST_WORKAROUND(BOOST_GCC, < 40900)
|
||||||
|
|
||||||
|
BOOST_TEST_LE( alignof(uuid), alignof(max_align_t) );
|
||||||
|
|
||||||
|
#else
|
||||||
|
|
||||||
BOOST_TEST_LE( alignof(uuid), alignof(std::max_align_t) );
|
BOOST_TEST_LE( alignof(uuid), alignof(std::max_align_t) );
|
||||||
|
|
||||||
|
#endif
|
||||||
|
|
||||||
#if defined(__STDCPP_DEFAULT_NEW_ALIGNMENT__)
|
#if defined(__STDCPP_DEFAULT_NEW_ALIGNMENT__)
|
||||||
|
|
||||||
BOOST_TEST_LE( alignof(uuid), __STDCPP_DEFAULT_NEW_ALIGNMENT__ );
|
BOOST_TEST_LE( alignof(uuid), __STDCPP_DEFAULT_NEW_ALIGNMENT__ );
|
||||||
|
|||||||
Reference in New Issue
Block a user