Skip to content

Commit 0035de7

Browse files
committed
Update to Boost 1.78
1 parent 79f2f42 commit 0035de7

File tree

301 files changed

+4234
-33920
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

301 files changed

+4234
-33920
lines changed

lslboost/boost/archive/detail/check.hpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,11 @@
44
// MS compatible compilers support #pragma once
55
#if defined(_MSC_VER)
66
# pragma once
7+
#if !defined(__clang__)
78
#pragma inline_depth(255)
89
#pragma inline_recursion(on)
910
#endif
11+
#endif
1012

1113
#if defined(__MWERKS__)
1214
#pragma inline_depth(255)

lslboost/boost/archive/detail/iserializer.hpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,11 @@
44
// MS compatible compilers support #pragma once
55
#if defined(BOOST_MSVC)
66
# pragma once
7+
#if !defined(__clang__)
78
#pragma inline_depth(255)
89
#pragma inline_recursion(on)
910
#endif
11+
#endif
1012

1113
#if defined(__MWERKS__)
1214
#pragma inline_depth(255)

lslboost/boost/archive/detail/oserializer.hpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,11 @@
44
// MS compatible compilers support #pragma once
55
#if defined(_MSC_VER)
66
# pragma once
7+
#if !defined(__clang__)
78
#pragma inline_depth(255)
89
#pragma inline_recursion(on)
910
#endif
11+
#endif
1012

1113
#if defined(__MWERKS__)
1214
#pragma inline_depth(255)

lslboost/boost/archive/impl/basic_text_iprimitive.ipp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,8 +112,8 @@ basic_text_iprimitive<IStream>::basic_text_iprimitive(
112112
) :
113113
is(is_),
114114
flags_saver(is_),
115-
precision_saver(is_),
116115
#ifndef BOOST_NO_STD_LOCALE
116+
precision_saver(is_),
117117
codecvt_null_facet(1),
118118
archive_locale(is.getloc(), & codecvt_null_facet),
119119
locale_saver(is)
@@ -125,6 +125,7 @@ basic_text_iprimitive<IStream>::basic_text_iprimitive(
125125
is_ >> std::noboolalpha;
126126
}
127127
#else
128+
precision_saver(is_)
128129
{}
129130
#endif
130131

lslboost/boost/archive/impl/basic_text_oprimitive.ipp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,8 +87,8 @@ basic_text_oprimitive<OStream>::basic_text_oprimitive(
8787
) :
8888
os(os_),
8989
flags_saver(os_),
90-
precision_saver(os_),
9190
#ifndef BOOST_NO_STD_LOCALE
91+
precision_saver(os_),
9292
codecvt_null_facet(1),
9393
archive_locale(os.getloc(), & codecvt_null_facet),
9494
locale_saver(os)
@@ -100,6 +100,7 @@ basic_text_oprimitive<OStream>::basic_text_oprimitive(
100100
os_ << std::noboolalpha;
101101
}
102102
#else
103+
precision_saver(os_)
103104
{}
104105
#endif
105106

lslboost/boost/assert/source_location.hpp

Lines changed: 45 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,18 @@
11
#ifndef BOOST_ASSERT_SOURCE_LOCATION_HPP_INCLUDED
22
#define BOOST_ASSERT_SOURCE_LOCATION_HPP_INCLUDED
33

4-
// http://www.boost.org/libs/assert
4+
// http://www.boost.org/libs/assert
55
//
6-
// Copyright 2019 Peter Dimov
7-
// Distributed under the Boost Software License, Version 1.0.
8-
// http://www.boost.org/LICENSE_1_0.txt
6+
// Copyright 2019, 2021 Peter Dimov
7+
// Distributed under the Boost Software License, Version 1.0.
8+
// http://www.boost.org/LICENSE_1_0.txt
99

1010
#include <boost/current_function.hpp>
1111
#include <boost/config.hpp>
1212
#include <boost/cstdint.hpp>
1313
#include <iosfwd>
14+
#include <string>
15+
#include <cstdio>
1416

1517
namespace lslboost
1618
{
@@ -53,28 +55,48 @@ struct source_location
5355
{
5456
return column_;
5557
}
56-
};
5758

58-
template<class E, class T> std::basic_ostream<E, T> & operator<<( std::basic_ostream<E, T> & os, source_location const & loc )
59-
{
60-
os.width( 0 );
59+
#if defined(BOOST_MSVC)
60+
# pragma warning( push )
61+
# pragma warning( disable: 4996 )
62+
#endif
6163

62-
if( loc.line() == 0 )
63-
{
64-
os << "(unknown source location)";
65-
}
66-
else
64+
std::string to_string() const
6765
{
68-
os << loc.file_name() << ':' << loc.line();
66+
if( line() == 0 )
67+
{
68+
return "(unknown source location)";
69+
}
70+
71+
std::string r = file_name();
72+
73+
char buffer[ 16 ];
6974

70-
if( loc.column() )
75+
std::sprintf( buffer, ":%ld", static_cast<long>( line() ) );
76+
r += buffer;
77+
78+
if( column() )
7179
{
72-
os << ':' << loc.column();
80+
std::sprintf( buffer, ":%ld", static_cast<long>( column() ) );
81+
r += buffer;
7382
}
7483

75-
os << ": in function '" << loc.function_name() << '\'';
84+
r += " in function '";
85+
r += function_name();
86+
r += '\'';
87+
88+
return r;
7689
}
7790

91+
#if defined(BOOST_MSVC)
92+
# pragma warning( pop )
93+
#endif
94+
95+
};
96+
97+
template<class E, class T> std::basic_ostream<E, T> & operator<<( std::basic_ostream<E, T> & os, source_location const & loc )
98+
{
99+
os << loc.to_string();
78100
return os;
79101
}
80102

@@ -84,6 +106,12 @@ template<class E, class T> std::basic_ostream<E, T> & operator<<( std::basic_ost
84106

85107
# define BOOST_CURRENT_LOCATION ::lslboost::source_location()
86108

109+
#elif defined(__clang_analyzer__)
110+
111+
// Cast to char const* to placate clang-tidy
112+
// https://bugs.llvm.org/show_bug.cgi?id=28480
113+
# define BOOST_CURRENT_LOCATION ::lslboost::source_location(__FILE__, __LINE__, static_cast<char const*>(BOOST_CURRENT_FUNCTION))
114+
87115
#else
88116

89117
# define BOOST_CURRENT_LOCATION ::lslboost::source_location(__FILE__, __LINE__, BOOST_CURRENT_FUNCTION)
Lines changed: 211 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,211 @@
1+
// This file was automatically generated on Tue Aug 17 16:27:31 2021
2+
// by libs/config/tools/generate.cpp
3+
// Copyright John Maddock 2002-21.
4+
// Use, modification and distribution are subject to the
5+
// Boost Software License, Version 1.0. (See accompanying file
6+
// LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
7+
8+
// See http://www.boost.org/libs/config for the most recent version.//
9+
// Revision $Id$
10+
//
11+
12+
#include <boost/config.hpp>
13+
14+
#ifdef BOOST_NO_ADL_BARRIER
15+
# error "Your compiler appears not to be fully C++03 compliant. Detected via defect macro BOOST_NO_ADL_BARRIER."
16+
#endif
17+
#ifdef BOOST_NO_ARGUMENT_DEPENDENT_LOOKUP
18+
# error "Your compiler appears not to be fully C++03 compliant. Detected via defect macro BOOST_NO_ARGUMENT_DEPENDENT_LOOKUP."
19+
#endif
20+
#ifdef BOOST_NO_ARRAY_TYPE_SPECIALIZATIONS
21+
# error "Your compiler appears not to be fully C++03 compliant. Detected via defect macro BOOST_NO_ARRAY_TYPE_SPECIALIZATIONS."
22+
#endif
23+
#ifdef BOOST_NO_COMPLETE_VALUE_INITIALIZATION
24+
# error "Your compiler appears not to be fully C++03 compliant. Detected via defect macro BOOST_NO_COMPLETE_VALUE_INITIALIZATION."
25+
#endif
26+
#ifdef BOOST_NO_CTYPE_FUNCTIONS
27+
# error "Your compiler appears not to be fully C++03 compliant. Detected via defect macro BOOST_NO_CTYPE_FUNCTIONS."
28+
#endif
29+
#ifdef BOOST_NO_CV_SPECIALIZATIONS
30+
# error "Your compiler appears not to be fully C++03 compliant. Detected via defect macro BOOST_NO_CV_SPECIALIZATIONS."
31+
#endif
32+
#ifdef BOOST_NO_CV_VOID_SPECIALIZATIONS
33+
# error "Your compiler appears not to be fully C++03 compliant. Detected via defect macro BOOST_NO_CV_VOID_SPECIALIZATIONS."
34+
#endif
35+
#ifdef BOOST_NO_CWCHAR
36+
# error "Your compiler appears not to be fully C++03 compliant. Detected via defect macro BOOST_NO_CWCHAR."
37+
#endif
38+
#ifdef BOOST_NO_CWCTYPE
39+
# error "Your compiler appears not to be fully C++03 compliant. Detected via defect macro BOOST_NO_CWCTYPE."
40+
#endif
41+
#ifdef BOOST_NO_DEPENDENT_NESTED_DERIVATIONS
42+
# error "Your compiler appears not to be fully C++03 compliant. Detected via defect macro BOOST_NO_DEPENDENT_NESTED_DERIVATIONS."
43+
#endif
44+
#ifdef BOOST_NO_DEPENDENT_TYPES_IN_TEMPLATE_VALUE_PARAMETERS
45+
# error "Your compiler appears not to be fully C++03 compliant. Detected via defect macro BOOST_NO_DEPENDENT_TYPES_IN_TEMPLATE_VALUE_PARAMETERS."
46+
#endif
47+
#ifdef BOOST_NO_EXCEPTIONS
48+
# error "Your compiler appears not to be fully C++03 compliant. Detected via defect macro BOOST_NO_EXCEPTIONS."
49+
#endif
50+
#ifdef BOOST_NO_EXCEPTION_STD_NAMESPACE
51+
# error "Your compiler appears not to be fully C++03 compliant. Detected via defect macro BOOST_NO_EXCEPTION_STD_NAMESPACE."
52+
#endif
53+
#ifdef BOOST_NO_EXPLICIT_FUNCTION_TEMPLATE_ARGUMENTS
54+
# error "Your compiler appears not to be fully C++03 compliant. Detected via defect macro BOOST_NO_EXPLICIT_FUNCTION_TEMPLATE_ARGUMENTS."
55+
#endif
56+
#ifdef BOOST_NO_FENV_H
57+
# error "Your compiler appears not to be fully C++03 compliant. Detected via defect macro BOOST_NO_FENV_H."
58+
#endif
59+
#ifdef BOOST_NO_FUNCTION_TEMPLATE_ORDERING
60+
# error "Your compiler appears not to be fully C++03 compliant. Detected via defect macro BOOST_NO_FUNCTION_TEMPLATE_ORDERING."
61+
#endif
62+
#ifdef BOOST_NO_FUNCTION_TYPE_SPECIALIZATIONS
63+
# error "Your compiler appears not to be fully C++03 compliant. Detected via defect macro BOOST_NO_FUNCTION_TYPE_SPECIALIZATIONS."
64+
#endif
65+
#ifdef BOOST_NO_INCLASS_MEMBER_INITIALIZATION
66+
# error "Your compiler appears not to be fully C++03 compliant. Detected via defect macro BOOST_NO_INCLASS_MEMBER_INITIALIZATION."
67+
#endif
68+
#ifdef BOOST_NO_INTEGRAL_INT64_T
69+
# error "Your compiler appears not to be fully C++03 compliant. Detected via defect macro BOOST_NO_INTEGRAL_INT64_T."
70+
#endif
71+
#ifdef BOOST_NO_INTRINSIC_WCHAR_T
72+
# error "Your compiler appears not to be fully C++03 compliant. Detected via defect macro BOOST_NO_INTRINSIC_WCHAR_T."
73+
#endif
74+
#ifdef BOOST_NO_IOSFWD
75+
# error "Your compiler appears not to be fully C++03 compliant. Detected via defect macro BOOST_NO_IOSFWD."
76+
#endif
77+
#ifdef BOOST_NO_IOSTREAM
78+
# error "Your compiler appears not to be fully C++03 compliant. Detected via defect macro BOOST_NO_IOSTREAM."
79+
#endif
80+
#ifdef BOOST_NO_IS_ABSTRACT
81+
# error "Your compiler appears not to be fully C++03 compliant. Detected via defect macro BOOST_NO_IS_ABSTRACT."
82+
#endif
83+
#ifdef BOOST_NO_LIMITS
84+
# error "Your compiler appears not to be fully C++03 compliant. Detected via defect macro BOOST_NO_LIMITS."
85+
#endif
86+
#ifdef BOOST_NO_LIMITS_COMPILE_TIME_CONSTANTS
87+
# error "Your compiler appears not to be fully C++03 compliant. Detected via defect macro BOOST_NO_LIMITS_COMPILE_TIME_CONSTANTS."
88+
#endif
89+
#ifdef BOOST_NO_LONG_LONG
90+
# error "Your compiler appears not to be fully C++03 compliant. Detected via defect macro BOOST_NO_LONG_LONG."
91+
#endif
92+
#ifdef BOOST_NO_LONG_LONG_NUMERIC_LIMITS
93+
# error "Your compiler appears not to be fully C++03 compliant. Detected via defect macro BOOST_NO_LONG_LONG_NUMERIC_LIMITS."
94+
#endif
95+
#ifdef BOOST_NO_MEMBER_FUNCTION_SPECIALIZATIONS
96+
# error "Your compiler appears not to be fully C++03 compliant. Detected via defect macro BOOST_NO_MEMBER_FUNCTION_SPECIALIZATIONS."
97+
#endif
98+
#ifdef BOOST_NO_MEMBER_TEMPLATES
99+
# error "Your compiler appears not to be fully C++03 compliant. Detected via defect macro BOOST_NO_MEMBER_TEMPLATES."
100+
#endif
101+
#ifdef BOOST_NO_MEMBER_TEMPLATE_FRIENDS
102+
# error "Your compiler appears not to be fully C++03 compliant. Detected via defect macro BOOST_NO_MEMBER_TEMPLATE_FRIENDS."
103+
#endif
104+
#ifdef BOOST_NO_MEMBER_TEMPLATE_KEYWORD
105+
# error "Your compiler appears not to be fully C++03 compliant. Detected via defect macro BOOST_NO_MEMBER_TEMPLATE_KEYWORD."
106+
#endif
107+
#ifdef BOOST_NO_NESTED_FRIENDSHIP
108+
# error "Your compiler appears not to be fully C++03 compliant. Detected via defect macro BOOST_NO_NESTED_FRIENDSHIP."
109+
#endif
110+
#ifdef BOOST_NO_OPERATORS_IN_NAMESPACE
111+
# error "Your compiler appears not to be fully C++03 compliant. Detected via defect macro BOOST_NO_OPERATORS_IN_NAMESPACE."
112+
#endif
113+
#ifdef BOOST_NO_PARTIAL_SPECIALIZATION_IMPLICIT_DEFAULT_ARGS
114+
# error "Your compiler appears not to be fully C++03 compliant. Detected via defect macro BOOST_NO_PARTIAL_SPECIALIZATION_IMPLICIT_DEFAULT_ARGS."
115+
#endif
116+
#ifdef BOOST_NO_POINTER_TO_MEMBER_CONST
117+
# error "Your compiler appears not to be fully C++03 compliant. Detected via defect macro BOOST_NO_POINTER_TO_MEMBER_CONST."
118+
#endif
119+
#ifdef BOOST_NO_POINTER_TO_MEMBER_TEMPLATE_PARAMETERS
120+
# error "Your compiler appears not to be fully C++03 compliant. Detected via defect macro BOOST_NO_POINTER_TO_MEMBER_TEMPLATE_PARAMETERS."
121+
#endif
122+
#ifdef BOOST_NO_PRIVATE_IN_AGGREGATE
123+
# error "Your compiler appears not to be fully C++03 compliant. Detected via defect macro BOOST_NO_PRIVATE_IN_AGGREGATE."
124+
#endif
125+
#ifdef BOOST_NO_RESTRICT_REFERENCES
126+
# error "Your compiler appears not to be fully C++03 compliant. Detected via defect macro BOOST_NO_RESTRICT_REFERENCES."
127+
#endif
128+
#ifdef BOOST_NO_RTTI
129+
# error "Your compiler appears not to be fully C++03 compliant. Detected via defect macro BOOST_NO_RTTI."
130+
#endif
131+
#ifdef BOOST_NO_SFINAE
132+
# error "Your compiler appears not to be fully C++03 compliant. Detected via defect macro BOOST_NO_SFINAE."
133+
#endif
134+
#ifdef BOOST_NO_SFINAE_EXPR
135+
# error "Your compiler appears not to be fully C++03 compliant. Detected via defect macro BOOST_NO_SFINAE_EXPR."
136+
#endif
137+
#ifdef BOOST_NO_STDC_NAMESPACE
138+
# error "Your compiler appears not to be fully C++03 compliant. Detected via defect macro BOOST_NO_STDC_NAMESPACE."
139+
#endif
140+
#ifdef BOOST_NO_STD_ALLOCATOR
141+
# error "Your compiler appears not to be fully C++03 compliant. Detected via defect macro BOOST_NO_STD_ALLOCATOR."
142+
#endif
143+
#ifdef BOOST_NO_STD_DISTANCE
144+
# error "Your compiler appears not to be fully C++03 compliant. Detected via defect macro BOOST_NO_STD_DISTANCE."
145+
#endif
146+
#ifdef BOOST_NO_STD_ITERATOR
147+
# error "Your compiler appears not to be fully C++03 compliant. Detected via defect macro BOOST_NO_STD_ITERATOR."
148+
#endif
149+
#ifdef BOOST_NO_STD_ITERATOR_TRAITS
150+
# error "Your compiler appears not to be fully C++03 compliant. Detected via defect macro BOOST_NO_STD_ITERATOR_TRAITS."
151+
#endif
152+
#ifdef BOOST_NO_STD_LOCALE
153+
# error "Your compiler appears not to be fully C++03 compliant. Detected via defect macro BOOST_NO_STD_LOCALE."
154+
#endif
155+
#ifdef BOOST_NO_STD_MESSAGES
156+
# error "Your compiler appears not to be fully C++03 compliant. Detected via defect macro BOOST_NO_STD_MESSAGES."
157+
#endif
158+
#ifdef BOOST_NO_STD_MIN_MAX
159+
# error "Your compiler appears not to be fully C++03 compliant. Detected via defect macro BOOST_NO_STD_MIN_MAX."
160+
#endif
161+
#ifdef BOOST_NO_STD_OUTPUT_ITERATOR_ASSIGN
162+
# error "Your compiler appears not to be fully C++03 compliant. Detected via defect macro BOOST_NO_STD_OUTPUT_ITERATOR_ASSIGN."
163+
#endif
164+
#ifdef BOOST_NO_STD_TYPEINFO
165+
# error "Your compiler appears not to be fully C++03 compliant. Detected via defect macro BOOST_NO_STD_TYPEINFO."
166+
#endif
167+
#ifdef BOOST_NO_STD_USE_FACET
168+
# error "Your compiler appears not to be fully C++03 compliant. Detected via defect macro BOOST_NO_STD_USE_FACET."
169+
#endif
170+
#ifdef BOOST_NO_STD_WSTREAMBUF
171+
# error "Your compiler appears not to be fully C++03 compliant. Detected via defect macro BOOST_NO_STD_WSTREAMBUF."
172+
#endif
173+
#ifdef BOOST_NO_STD_WSTRING
174+
# error "Your compiler appears not to be fully C++03 compliant. Detected via defect macro BOOST_NO_STD_WSTRING."
175+
#endif
176+
#ifdef BOOST_NO_STRINGSTREAM
177+
# error "Your compiler appears not to be fully C++03 compliant. Detected via defect macro BOOST_NO_STRINGSTREAM."
178+
#endif
179+
#ifdef BOOST_NO_TEMPLATED_IOSTREAMS
180+
# error "Your compiler appears not to be fully C++03 compliant. Detected via defect macro BOOST_NO_TEMPLATED_IOSTREAMS."
181+
#endif
182+
#ifdef BOOST_NO_TEMPLATED_ITERATOR_CONSTRUCTORS
183+
# error "Your compiler appears not to be fully C++03 compliant. Detected via defect macro BOOST_NO_TEMPLATED_ITERATOR_CONSTRUCTORS."
184+
#endif
185+
#ifdef BOOST_NO_TEMPLATE_PARTIAL_SPECIALIZATION
186+
# error "Your compiler appears not to be fully C++03 compliant. Detected via defect macro BOOST_NO_TEMPLATE_PARTIAL_SPECIALIZATION."
187+
#endif
188+
#ifdef BOOST_NO_TEMPLATE_TEMPLATES
189+
# error "Your compiler appears not to be fully C++03 compliant. Detected via defect macro BOOST_NO_TEMPLATE_TEMPLATES."
190+
#endif
191+
#ifdef BOOST_NO_TWO_PHASE_NAME_LOOKUP
192+
# error "Your compiler appears not to be fully C++03 compliant. Detected via defect macro BOOST_NO_TWO_PHASE_NAME_LOOKUP."
193+
#endif
194+
#ifdef BOOST_NO_TYPEID
195+
# error "Your compiler appears not to be fully C++03 compliant. Detected via defect macro BOOST_NO_TYPEID."
196+
#endif
197+
#ifdef BOOST_NO_TYPENAME_WITH_CTOR
198+
# error "Your compiler appears not to be fully C++03 compliant. Detected via defect macro BOOST_NO_TYPENAME_WITH_CTOR."
199+
#endif
200+
#ifdef BOOST_NO_UNREACHABLE_RETURN_DETECTION
201+
# error "Your compiler appears not to be fully C++03 compliant. Detected via defect macro BOOST_NO_UNREACHABLE_RETURN_DETECTION."
202+
#endif
203+
#ifdef BOOST_NO_USING_DECLARATION_OVERLOADS_FROM_TYPENAME_BASE
204+
# error "Your compiler appears not to be fully C++03 compliant. Detected via defect macro BOOST_NO_USING_DECLARATION_OVERLOADS_FROM_TYPENAME_BASE."
205+
#endif
206+
#ifdef BOOST_NO_USING_TEMPLATE
207+
# error "Your compiler appears not to be fully C++03 compliant. Detected via defect macro BOOST_NO_USING_TEMPLATE."
208+
#endif
209+
#ifdef BOOST_NO_VOID_RETURNS
210+
# error "Your compiler appears not to be fully C++03 compliant. Detected via defect macro BOOST_NO_VOID_RETURNS."
211+
#endif

0 commit comments

Comments
 (0)