Skip to content

Commit

Permalink
Downgrade boost
Browse files Browse the repository at this point in the history
  • Loading branch information
bstaletic committed Sep 28, 2017
1 parent bca6a43 commit 48528c9
Show file tree
Hide file tree
Showing 408 changed files with 11,501 additions and 17,635 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ namespace boost {
// Protected construction/destruction

// Default constructor
find_iterator_base() {}
find_iterator_base() {};
// Copy construction
find_iterator_base( const find_iterator_base& Other ) :
m_Finder(Other.m_Finder) {}
Expand Down
5 changes: 2 additions & 3 deletions cpp/BoostParts/boost/algorithm/string/detail/util.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -89,10 +89,9 @@ namespace boost {
template<
typename SeqT,
typename IteratorT=BOOST_STRING_TYPENAME SeqT::const_iterator >
struct copy_iterator_rangeF
struct copy_iterator_rangeF :
public std::unary_function< iterator_range<IteratorT>, SeqT >
{
typedef iterator_range<IteratorT> argument_type;
typedef SeqT result_type;
SeqT operator()( const iterator_range<IteratorT>& Range ) const
{
return copy_range<SeqT>(Range);
Expand Down
20 changes: 20 additions & 0 deletions cpp/BoostParts/boost/align/align.hpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
/*
(c) 2014-2015 Glen Joseph Fernandes
<glenjofe -at- gmail.com>
Distributed under the Boost Software
License, Version 1.0.
http://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)
#include <boost/align/detail/align_cxx11.hpp>
#else
#include <boost/align/detail/align.hpp>
#endif

#endif
38 changes: 38 additions & 0 deletions cpp/BoostParts/boost/align/detail/align.hpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
/*
(c) 2014-2016 Glen Joseph Fernandes
<glenjofe -at- gmail.com>
Distributed under the Boost Software
License, Version 1.0.
http://boost.org/LICENSE_1_0.txt
*/
#ifndef BOOST_ALIGN_DETAIL_ALIGN_HPP
#define BOOST_ALIGN_DETAIL_ALIGN_HPP

#include <boost/align/detail/is_alignment.hpp>
#include <boost/assert.hpp>

namespace boost {
namespace alignment {

inline void* align(std::size_t alignment, std::size_t size,
void*& ptr, std::size_t& space)
{
BOOST_ASSERT(detail::is_alignment(alignment));
if (size <= space) {
char* p = (char*)(((std::size_t)ptr + alignment - 1) &
~(alignment - 1));
std::size_t n = space - (p - static_cast<char*>(ptr));
if (size <= n) {
ptr = p;
space = n;
return p;
}
}
return 0;
}

} /* .alignment */
} /* .boost */

#endif
22 changes: 22 additions & 0 deletions cpp/BoostParts/boost/align/detail/align_cxx11.hpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
/*
(c) 2014 Glen Joseph Fernandes
<glenjofe -at- gmail.com>
Distributed under the Boost Software
License, Version 1.0.
http://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
29 changes: 29 additions & 0 deletions cpp/BoostParts/boost/align/detail/is_alignment.hpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
/*
(c) 2014 Glen Joseph Fernandes
<glenjofe -at- gmail.com>
Distributed under the Boost Software
License, Version 1.0.
http://boost.org/LICENSE_1_0.txt
*/
#ifndef BOOST_ALIGN_DETAIL_IS_ALIGNMENT_HPP
#define BOOST_ALIGN_DETAIL_IS_ALIGNMENT_HPP

#include <boost/config.hpp>
#include <cstddef>

namespace boost {
namespace alignment {
namespace detail {

BOOST_CONSTEXPR inline bool is_alignment(std::size_t value)
BOOST_NOEXCEPT
{
return (value > 0) && ((value & (value - 1)) == 0);
}

} /* .detail */
} /* .alignment */
} /* .boost */

#endif
2 changes: 1 addition & 1 deletion cpp/BoostParts/boost/archive/basic_binary_iprimitive.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ namespace std{

//#include <boost/mpl/placeholders.hpp>
#include <boost/serialization/is_bitwise_serializable.hpp>
#include <boost/serialization/array_wrapper.hpp>
#include <boost/serialization/array.hpp>

#include <boost/archive/basic_streambuf_locale_saver.hpp>
#include <boost/archive/codecvt_null.hpp>
Expand Down
2 changes: 1 addition & 1 deletion cpp/BoostParts/boost/archive/basic_binary_oprimitive.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ namespace std{

//#include <boost/mpl/placeholders.hpp>
#include <boost/serialization/is_bitwise_serializable.hpp>
#include <boost/serialization/array_wrapper.hpp>
#include <boost/serialization/array.hpp>

#include <boost/archive/basic_streambuf_locale_saver.hpp>
#include <boost/archive/codecvt_null.hpp>
Expand Down
2 changes: 1 addition & 1 deletion cpp/BoostParts/boost/archive/basic_text_iarchive.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
//
// note the fact that on libraries without wide characters, ostream is
// is not a specialization of basic_ostream which in fact is not defined
// in such cases. So we can't use basic_istream<IStream::char_type> but rather
// in such cases. So we can't use basic_ostream<IStream::char_type> but rather
// use two template parameters

#include <boost/config.hpp>
Expand Down
2 changes: 2 additions & 0 deletions cpp/BoostParts/boost/archive/basic_text_oprimitive.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,8 @@ class BOOST_SYMBOL_VISIBLE basic_text_oprimitive

template<class T>
void save(const T & t){
boost::io::ios_flags_saver fs(os);
boost::io::ios_precision_saver ps(os);
typename is_float<T>::type tf;
save_impl(t, tf);
}
Expand Down
3 changes: 2 additions & 1 deletion cpp/BoostParts/boost/archive/basic_xml_iarchive.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,8 @@ class BOOST_SYMBOL_VISIBLE basic_xml_iarchive :
// leaving the archive in an undetermined state
BOOST_ARCHIVE_OR_WARCHIVE_DECL void
load_override(class_id_type & t);
void load_override(class_id_optional_type & /* t */){}
BOOST_ARCHIVE_OR_WARCHIVE_DECL void
load_override(class_id_optional_type & /* t */){}
BOOST_ARCHIVE_OR_WARCHIVE_DECL void
load_override(object_id_type & t);
BOOST_ARCHIVE_OR_WARCHIVE_DECL void
Expand Down
13 changes: 5 additions & 8 deletions cpp/BoostParts/boost/archive/codecvt_null.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,8 @@

#include <locale>
#include <cstddef> // NULL, size_t
#ifndef BOOST_NO_CWCHAR
#include <cwchar> // for mbstate_t
#endif
#include <boost/config.hpp>
#include <boost/serialization/force_include.hpp>
#include <boost/archive/detail/auto_link_archive.hpp>
#include <boost/archive/detail/abi_prefix.hpp> // must be the last header

Expand Down Expand Up @@ -65,7 +62,7 @@ class codecvt_null<char> : public std::codecvt<char, char, std::mbstate_t>
template<>
class BOOST_SYMBOL_VISIBLE codecvt_null<wchar_t> : public std::codecvt<wchar_t, char, std::mbstate_t>
{
virtual BOOST_WARCHIVE_DECL BOOST_DLLEXPORT std::codecvt_base::result
virtual BOOST_WARCHIVE_DECL std::codecvt_base::result
do_out(
std::mbstate_t & state,
const wchar_t * first1,
Expand All @@ -74,8 +71,8 @@ class BOOST_SYMBOL_VISIBLE codecvt_null<wchar_t> : public std::codecvt<wchar_t,
char * first2,
char * last2,
char * & next2
) const BOOST_USED;
virtual BOOST_WARCHIVE_DECL BOOST_DLLEXPORT std::codecvt_base::result
) const;
virtual BOOST_WARCHIVE_DECL std::codecvt_base::result
do_in(
std::mbstate_t & state,
const char * first1,
Expand All @@ -84,15 +81,15 @@ class BOOST_SYMBOL_VISIBLE codecvt_null<wchar_t> : public std::codecvt<wchar_t,
wchar_t * first2,
wchar_t * last2,
wchar_t * & next2
) const BOOST_USED;
) const;
virtual int do_encoding( ) const throw( ){
return sizeof(wchar_t) / sizeof(char);
}
virtual int do_max_length( ) const throw( ){
return do_encoding();
}
public:
BOOST_DLLEXPORT explicit codecvt_null(std::size_t no_locale_manage = 0) :
explicit codecvt_null(std::size_t no_locale_manage = 0) :
std::codecvt<wchar_t, char, std::mbstate_t>(no_locale_manage)
{}
virtual ~codecvt_null(){};
Expand Down
13 changes: 3 additions & 10 deletions cpp/BoostParts/boost/archive/detail/iserializer.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -77,10 +77,10 @@ namespace std{
#include <boost/serialization/type_info_implementation.hpp>
#include <boost/serialization/nvp.hpp>
#include <boost/serialization/void_cast.hpp>
#include <boost/serialization/array.hpp>
#include <boost/serialization/collection_size_type.hpp>
#include <boost/serialization/singleton.hpp>
#include <boost/serialization/wrapper.hpp>
#include <boost/serialization/array_wrapper.hpp>

// the following is need only for dynamic cast of polymorphic pointers
#include <boost/archive/archive_exception.hpp>
Expand Down Expand Up @@ -588,14 +588,7 @@ struct load_array_type {
boost::archive::archive_exception::array_size_too_short
)
);
// explict template arguments to pass intel C++ compiler
ar >> serialization::make_array<
value_type,
boost::serialization::collection_size_type
>(
static_cast<value_type *>(&t[0]),
count
);
ar >> serialization::make_array(static_cast<value_type*>(&t[0]),count);
}
};

Expand All @@ -605,7 +598,7 @@ template<class Archive, class T>
inline void load(Archive & ar, T &t){
// if this assertion trips. It means we're trying to load a
// const object with a compiler that doesn't have correct
// function template ordering. On other compilers, this is
// funtion template ordering. On other compilers, this is
// handled below.
detail::check_const_loading< T >();
typedef
Expand Down
12 changes: 2 additions & 10 deletions cpp/BoostParts/boost/archive/detail/oserializer.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,8 @@
#include <boost/serialization/type_info_implementation.hpp>
#include <boost/serialization/nvp.hpp>
#include <boost/serialization/void_cast.hpp>
#include <boost/serialization/array.hpp>
#include <boost/serialization/collection_size_type.hpp>
#include <boost/serialization/array_wrapper.hpp>

#include <boost/serialization/singleton.hpp>

#include <boost/archive/archive_exception.hpp>
Expand Down Expand Up @@ -502,14 +501,7 @@ struct save_array_type
);
boost::serialization::collection_size_type count(c);
ar << BOOST_SERIALIZATION_NVP(count);
// explict template arguments to pass intel C++ compiler
ar << serialization::make_array<
const value_type,
boost::serialization::collection_size_type
>(
static_cast<const value_type *>(&t[0]),
count
);
ar << serialization::make_array(static_cast<value_type const*>(&t[0]),count);
}
};

Expand Down
15 changes: 5 additions & 10 deletions cpp/BoostParts/boost/archive/detail/utf8_codecvt_facet.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,11 @@

#include <boost/config.hpp>

#ifdef BOOST_NO_STD_WSTREAMBUF
#error "wide char i/o not supported on this platform"
#endif
// std::codecvt_utf8 doesn't seem to work for msvc
// versions prior to MSVC 14.0

// std::codecvt_utf8 doesn't seem to work for any versions of msvc

#if defined(_MSC_VER) || defined(BOOST_NO_CXX11_HDR_CODECVT)
// use boost's utf8 codecvt facet
#if defined(_MSC_VER) && _MSC_VER < 1900 \
|| defined( BOOST_NO_CXX11_HDR_CODECVT )
#include <boost/archive/detail/decl.hpp>
#define BOOST_UTF8_BEGIN_NAMESPACE \
namespace boost { namespace archive { namespace detail {
Expand All @@ -29,11 +26,9 @@
#undef BOOST_UTF8_DECL
#undef BOOST_UTF8_BEGIN_NAMESPACE
#else
// use the standard vendor supplied facet
#include <codecvt>
namespace boost { namespace archive { namespace detail {
typedef std::codecvt_utf8<wchar_t> utf8_codecvt_facet;
} } }
#endif

#endif // BOOST_NO_CXX11_HDR_CODECVT
#endif // BOOST_ARCHIVE_DETAIL_UTF8_CODECVT_FACET_HPP
4 changes: 0 additions & 4 deletions cpp/BoostParts/boost/archive/impl/archive_serializer_map.ipp
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,6 @@ archive_serializer_map<Archive>::insert(const basic_serializer * bs){
template<class Archive>
BOOST_ARCHIVE_OR_WARCHIVE_DECL void
archive_serializer_map<Archive>::erase(const basic_serializer * bs){
BOOST_ASSERT(! boost::serialization::singleton<
extra_detail::map<Archive>
>::is_destroyed()
);
if(boost::serialization::singleton<
extra_detail::map<Archive>
>::is_destroyed())
Expand Down
4 changes: 2 additions & 2 deletions cpp/BoostParts/boost/archive/impl/basic_binary_iprimitive.ipp
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,6 @@ basic_binary_iprimitive<Archive, Elem, Tr>::init()
);
}

#ifndef BOOST_NO_CWCHAR
template<class Archive, class Elem, class Tr>
BOOST_ARCHIVE_OR_WARCHIVE_DECL void
basic_binary_iprimitive<Archive, Elem, Tr>::load(wchar_t * ws)
Expand All @@ -94,7 +93,6 @@ basic_binary_iprimitive<Archive, Elem, Tr>::load(wchar_t * ws)
load_binary(ws, l * sizeof(wchar_t) / sizeof(char));
ws[l] = L'\0';
}
#endif

template<class Archive, class Elem, class Tr>
BOOST_ARCHIVE_OR_WARCHIVE_DECL void
Expand All @@ -112,6 +110,7 @@ basic_binary_iprimitive<Archive, Elem, Tr>::load(std::string & s)
load_binary(&(*s.begin()), l);
}

#ifndef BOOST_NO_CWCHAR
template<class Archive, class Elem, class Tr>
BOOST_ARCHIVE_OR_WARCHIVE_DECL void
basic_binary_iprimitive<Archive, Elem, Tr>::load(char * s)
Expand All @@ -121,6 +120,7 @@ basic_binary_iprimitive<Archive, Elem, Tr>::load(char * s)
load_binary(s, l);
s[l] = '\0';
}
#endif

#ifndef BOOST_NO_STD_WSTRING
template<class Archive, class Elem, class Tr>
Expand Down
2 changes: 0 additions & 2 deletions cpp/BoostParts/boost/archive/impl/basic_binary_oprimitive.ipp
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,6 @@ basic_binary_oprimitive<Archive, Elem, Tr>::save(const std::string &s)
}

#ifndef BOOST_NO_CWCHAR
#ifndef BOOST_NO_INTRINSIC_WCHAR_T
template<class Archive, class Elem, class Tr>
BOOST_ARCHIVE_OR_WARCHIVE_DECL void
basic_binary_oprimitive<Archive, Elem, Tr>::save(const wchar_t * ws)
Expand All @@ -92,7 +91,6 @@ basic_binary_oprimitive<Archive, Elem, Tr>::save(const std::wstring &ws)
save_binary(ws.data(), l * sizeof(wchar_t) / sizeof(char));
}
#endif
#endif // BOOST_NO_CWCHAR

template<class Archive, class Elem, class Tr>
BOOST_ARCHIVE_OR_WARCHIVE_DECL
Expand Down
2 changes: 1 addition & 1 deletion cpp/BoostParts/boost/archive/impl/text_wiarchive_impl.ipp
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ text_wiarchive_impl<Archive>::load(std::string &s)
s.resize(0);
s.reserve(size);
while(size-- > 0){
char x = is.narrow(is.get(), '\0');
int x = is.narrow(is.get(), '\0');
s += x;
}
}
Expand Down
Loading

0 comments on commit 48528c9

Please sign in to comment.