Mercurial > hg > vamp-build-and-test
comparison DEPENDENCIES/generic/include/boost/align/alignment_of.hpp @ 102:f46d142149f5
Whoops, finish that update
author | Chris Cannam |
---|---|
date | Mon, 07 Sep 2015 11:13:41 +0100 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
101:c530137014c0 | 102:f46d142149f5 |
---|---|
1 /* | |
2 (c) 2014 Glen Joseph Fernandes | |
3 glenjofe at gmail dot com | |
4 | |
5 Distributed under the Boost Software | |
6 License, Version 1.0. | |
7 http://boost.org/LICENSE_1_0.txt | |
8 */ | |
9 #ifndef BOOST_ALIGN_ALIGNMENT_OF_HPP | |
10 #define BOOST_ALIGN_ALIGNMENT_OF_HPP | |
11 | |
12 #include <boost/config.hpp> | |
13 #include <boost/align/alignment_of_forward.hpp> | |
14 #include <boost/align/detail/remove_traits.hpp> | |
15 | |
16 #if !defined(BOOST_NO_CXX11_HDR_TYPE_TRAITS) | |
17 #include <boost/align/detail/alignment_of_cxx11.hpp> | |
18 #elif defined(BOOST_MSVC) | |
19 #include <boost/align/detail/alignment_of_msvc.hpp> | |
20 #elif defined(BOOST_CLANG) | |
21 #include <boost/align/detail/alignment_of_clang.hpp> | |
22 #elif defined(__ghs__) && (__GHS_VERSION_NUMBER >= 600) | |
23 #include <boost/align/detail/alignment_of_gcc.hpp> | |
24 #elif defined(__CODEGEARC__) | |
25 #include <boost/align/detail/alignment_of_codegear.hpp> | |
26 #elif defined(__GNUC__) && defined(__unix__) && !defined(__LP64__) | |
27 #include <boost/align/detail/alignment_of.hpp> | |
28 #elif __GNUC__ > 4 | |
29 #include <boost/align/detail/alignment_of_gcc.hpp> | |
30 #elif (__GNUC__ == 4) && (__GNUC_MINOR__ >= 3) | |
31 #include <boost/align/detail/alignment_of_gcc.hpp> | |
32 #else | |
33 #include <boost/align/detail/alignment_of.hpp> | |
34 #endif | |
35 | |
36 namespace boost { | |
37 namespace alignment { | |
38 template<class T> | |
39 struct alignment_of | |
40 : detail::alignment_of<typename | |
41 detail::remove_cv<typename | |
42 detail::remove_all_extents<typename | |
43 detail::remove_reference<T>:: | |
44 type>::type>::type>::type { | |
45 }; | |
46 } | |
47 } | |
48 | |
49 #endif |