-
Notifications
You must be signed in to change notification settings - Fork 549
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
More missing boost headers for FreeBSD 13
- Loading branch information
Showing
7 changed files
with
256 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
/* | ||
Copyright 2014-2015 Glen Joseph Fernandes | ||
(glenjofe@gmail.com) | ||
Distributed under the Boost Software License, Version 1.0. | ||
(http://www.boost.org/LICENSE_1_0.txt) | ||
*/ | ||
#ifndef BOOST_ALIGN_ALIGN_HPP | ||
#define BOOST_ALIGN_ALIGN_HPP | ||
|
||
#include <boost/config.hpp> | ||
|
||
#if !defined(BOOST_NO_CXX11_STD_ALIGN) && !defined(BOOST_LIBSTDCXX_VERSION) | ||
#include <boost/align/detail/align_cxx11.hpp> | ||
#else | ||
#include <boost/align/detail/align.hpp> | ||
#endif | ||
|
||
#endif |
54 changes: 54 additions & 0 deletions
54
src/cxx_supportlib/vendor-modified/boost/align/alignment_of.hpp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
/* | ||
Copyright 2014-2016 Glen Joseph Fernandes | ||
(glenjofe@gmail.com) | ||
Distributed under the Boost Software License, Version 1.0. | ||
(http://www.boost.org/LICENSE_1_0.txt) | ||
*/ | ||
#ifndef BOOST_ALIGN_ALIGNMENT_OF_HPP | ||
#define BOOST_ALIGN_ALIGNMENT_OF_HPP | ||
|
||
#include <boost/align/detail/element_type.hpp> | ||
#include <boost/align/alignment_of_forward.hpp> | ||
|
||
#if defined(_MSC_VER) && defined(__clang__) | ||
#include <boost/align/detail/alignment_of_cxx11.hpp> | ||
#elif defined(BOOST_MSVC) | ||
#include <boost/align/detail/alignment_of_msvc.hpp> | ||
#elif defined(__GNUC__) && defined(__unix__) && !defined(__LP64__) | ||
#include <boost/align/detail/alignment_of.hpp> | ||
#elif defined(BOOST_CLANG) && !defined(__x86_64__) | ||
#include <boost/align/detail/alignment_of.hpp> | ||
#elif !defined(BOOST_NO_CXX11_HDR_TYPE_TRAITS) | ||
#include <boost/align/detail/alignment_of_cxx11.hpp> | ||
#elif defined(__ghs__) && (__GHS_VERSION_NUMBER >= 600) | ||
#include <boost/align/detail/alignment_of_gcc.hpp> | ||
#elif defined(BOOST_CODEGEARC) | ||
#include <boost/align/detail/alignment_of_codegear.hpp> | ||
#elif defined(BOOST_CLANG) | ||
#include <boost/align/detail/alignment_of_clang.hpp> | ||
#elif __GNUC__ > 4 | ||
#include <boost/align/detail/alignment_of_gcc.hpp> | ||
#elif (__GNUC__ == 4) && (__GNUC_MINOR__ >= 3) | ||
#include <boost/align/detail/alignment_of_gcc.hpp> | ||
#else | ||
#include <boost/align/detail/alignment_of.hpp> | ||
#endif | ||
|
||
namespace boost { | ||
namespace alignment { | ||
|
||
template<class T> | ||
struct alignment_of | ||
: detail::alignment_of<typename | ||
detail::element_type<T>::type>::type { }; | ||
|
||
#if !defined(BOOST_NO_CXX14_VARIABLE_TEMPLATES) | ||
template<class T> | ||
constexpr std::size_t alignment_of_v = alignment_of<T>::value; | ||
#endif | ||
|
||
} /* alignment */ | ||
} /* boost */ | ||
|
||
#endif |
20 changes: 20 additions & 0 deletions
20
src/cxx_supportlib/vendor-modified/boost/align/alignment_of_forward.hpp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
/* | ||
Copyright 2014 Glen Joseph Fernandes | ||
(glenjofe@gmail.com) | ||
Distributed under the Boost Software License, Version 1.0. | ||
(http://www.boost.org/LICENSE_1_0.txt) | ||
*/ | ||
#ifndef BOOST_ALIGN_ALIGNMENT_OF_FORWARD_HPP | ||
#define BOOST_ALIGN_ALIGNMENT_OF_FORWARD_HPP | ||
|
||
namespace boost { | ||
namespace alignment { | ||
|
||
template<class T> | ||
struct alignment_of; | ||
|
||
} /* alignment */ | ||
} /* boost */ | ||
|
||
#endif |
21 changes: 21 additions & 0 deletions
21
src/cxx_supportlib/vendor-modified/boost/align/detail/align_cxx11.hpp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
/* | ||
Copyright 2014 Glen Joseph Fernandes | ||
(glenjofe@gmail.com) | ||
Distributed under the Boost Software License, Version 1.0. | ||
(http://www.boost.org/LICENSE_1_0.txt) | ||
*/ | ||
#ifndef BOOST_ALIGN_DETAIL_ALIGN_CXX11_HPP | ||
#define BOOST_ALIGN_DETAIL_ALIGN_CXX11_HPP | ||
|
||
#include <memory> | ||
|
||
namespace boost { | ||
namespace alignment { | ||
|
||
using std::align; | ||
|
||
} /* alignment */ | ||
} /* boost */ | ||
|
||
#endif |
23 changes: 23 additions & 0 deletions
23
src/cxx_supportlib/vendor-modified/boost/align/detail/alignment_of_cxx11.hpp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
/* | ||
Copyright 2014 Glen Joseph Fernandes | ||
(glenjofe@gmail.com) | ||
Distributed under the Boost Software License, Version 1.0. | ||
(http://www.boost.org/LICENSE_1_0.txt) | ||
*/ | ||
#ifndef BOOST_ALIGN_DETAIL_ALIGNMENT_OF_CXX11_HPP | ||
#define BOOST_ALIGN_DETAIL_ALIGNMENT_OF_CXX11_HPP | ||
|
||
#include <type_traits> | ||
|
||
namespace boost { | ||
namespace alignment { | ||
namespace detail { | ||
|
||
using std::alignment_of; | ||
|
||
} /* detail */ | ||
} /* alignment */ | ||
} /* boost */ | ||
|
||
#endif |
91 changes: 91 additions & 0 deletions
91
src/cxx_supportlib/vendor-modified/boost/align/detail/element_type.hpp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,91 @@ | ||
/* | ||
Copyright 2015 Glen Joseph Fernandes | ||
(glenjofe@gmail.com) | ||
Distributed under the Boost Software License, Version 1.0. | ||
(http://www.boost.org/LICENSE_1_0.txt) | ||
*/ | ||
#ifndef BOOST_ALIGN_DETAIL_ELEMENT_TYPE_HPP | ||
#define BOOST_ALIGN_DETAIL_ELEMENT_TYPE_HPP | ||
|
||
#include <boost/config.hpp> | ||
|
||
#if !defined(BOOST_NO_CXX11_HDR_TYPE_TRAITS) | ||
#include <type_traits> | ||
#else | ||
#include <cstddef> | ||
#endif | ||
|
||
namespace boost { | ||
namespace alignment { | ||
namespace detail { | ||
|
||
#if !defined(BOOST_NO_CXX11_HDR_TYPE_TRAITS) | ||
using std::remove_reference; | ||
using std::remove_all_extents; | ||
using std::remove_cv; | ||
#else | ||
template<class T> | ||
struct remove_reference { | ||
typedef T type; | ||
}; | ||
|
||
template<class T> | ||
struct remove_reference<T&> { | ||
typedef T type; | ||
}; | ||
|
||
#if !defined(BOOST_NO_CXX11_RVALUE_REFERENCES) | ||
template<class T> | ||
struct remove_reference<T&&> { | ||
typedef T type; | ||
}; | ||
#endif | ||
|
||
template<class T> | ||
struct remove_all_extents { | ||
typedef T type; | ||
}; | ||
|
||
template<class T> | ||
struct remove_all_extents<T[]> { | ||
typedef typename remove_all_extents<T>::type type; | ||
}; | ||
|
||
template<class T, std::size_t N> | ||
struct remove_all_extents<T[N]> { | ||
typedef typename remove_all_extents<T>::type type; | ||
}; | ||
|
||
template<class T> | ||
struct remove_cv { | ||
typedef T type; | ||
}; | ||
|
||
template<class T> | ||
struct remove_cv<const T> { | ||
typedef T type; | ||
}; | ||
|
||
template<class T> | ||
struct remove_cv<volatile T> { | ||
typedef T type; | ||
}; | ||
|
||
template<class T> | ||
struct remove_cv<const volatile T> { | ||
typedef T type; | ||
}; | ||
#endif | ||
|
||
template<class T> | ||
struct element_type { | ||
typedef typename remove_cv<typename remove_all_extents<typename | ||
remove_reference<T>::type>::type>::type type; | ||
}; | ||
|
||
} /* detail */ | ||
} /* alignment */ | ||
} /* boost */ | ||
|
||
#endif |