boost_core 0.1.0

Boost C++ library boost_core packaged using Zanbil
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
#  Boost.Core Library test Jamfile
#
#  Copyright (c) 2014-2021 Peter Dimov
#
#  Distributed under the Boost Software License, Version 1.0.
#  See accompanying file LICENSE_1_0.txt or copy at
#  http://www.boost.org/LICENSE_1_0.txt

require-b2 5.0.1 ;
import-search /boost/config/checks ;
import config : requires ;
import modules ;
import testing ;

project : requirements
  <library>/boost/core//boost_core
  <library>/boost/type_traits//boost_type_traits
  <warnings>extra
  <toolset>msvc:<warnings-as-errors>on
  <toolset>clang:<warnings-as-errors>on
  <toolset>gcc:<warnings-as-errors>on
  <toolset>gcc-4.4:<cxxflags>-Wno-sign-compare ;

local warnings-as-errors-off =
    "-<toolset>msvc:<warnings-as-errors>on"
    "-<toolset>gcc:<warnings-as-errors>on"
    "-<toolset>clang:<warnings-as-errors>on" ;

local pedantic-errors = <warnings>pedantic
    <toolset>gcc:<cxxflags>"-Wconversion"
    <toolset>gcc:<cxxflags>"-Wsign-conversion"
    <toolset>clang:<cxxflags>"-Wconversion"
    <toolset>clang:<cxxflags>"-Wsign-conversion"
    <toolset>msvc:<warnings-as-errors>on
    <toolset>gcc:<warnings-as-errors>on
    <toolset>clang:<warnings-as-errors>on ;

local CPP11 = [ requires cxx11_variadic_templates cxx11_template_aliases cxx11_decltype cxx11_constexpr cxx11_noexcept cxx11_ref_qualifiers ] ;

# quick test (for CI)
run quick.cpp ;

# full test suite
run addressof_test.cpp ;
run addressof_test2.cpp ;
run addressof_np_test.cpp ;
run addressof_fn_test.cpp ;
compile addressof_constexpr_test.cpp ;
compile-fail addressof_fail_rvalue.cpp
  : $(warnings-as-errors-off) ;

run checked_delete_test.cpp
  : : : $(pedantic-errors) ;
compile-fail checked_delete_fail.cpp
  : $(warnings-as-errors-off) ;
compile-fail checked_delete_fail2.cpp
  : $(warnings-as-errors-off) ;
compile-fail checked_deleter_compile_fail_adl.cpp
  : $(warnings-as-errors-off) ;
compile-fail checked_array_deleter_compile_fail_adl.cpp
  : $(warnings-as-errors-off) ;

compile ref_ct_test.cpp ;
run ref_test.cpp ;
run ref_ref_test.cpp ;
run ref_fn_test.cpp ;
compile-fail ref_rv_fail1.cpp
  : $(warnings-as-errors-off) ;
compile-fail ref_rv_fail2.cpp
  : $(warnings-as-errors-off) ;
compile-fail ref_rv_fail3.cpp
  : $(warnings-as-errors-off) ;
compile-fail ref_rv_fail4.cpp
  : $(warnings-as-errors-off) ;
compile-fail ref_rv_fail5.cpp
  : $(warnings-as-errors-off) ;
compile-fail ref_implicit_fail.cpp
  : $(warnings-as-errors-off) ;
compile-fail ref_implicit_fail2.cpp
  : $(warnings-as-errors-off) ;
compile-fail ref_implicit_fail3.cpp
  : $(warnings-as-errors-off) ;
compile-fail ref_implicit_fail4.cpp
  : $(warnings-as-errors-off) ;
run ref_cv_test.cpp ;
run ref_conversion_test.cpp ;

run eif_constructors.cpp ;
run eif_dummy_arg_disambiguation.cpp ;
run eif_lazy.cpp ;
run eif_lazy_test.cpp ;
run eif_member_templates.cpp ;
run eif_namespace_disambiguation.cpp ;
run eif_no_disambiguation.cpp ;
run eif_partial_specializations.cpp ;

compile-fail noncopyable_compile_fail.cpp
  : $(warnings-as-errors-off) ;

run explicit_operator_bool.cpp ;
run explicit_operator_bool_noexcept.cpp ;
compile-fail explicit_operator_bool_compile_fail_conv_int.cpp
  : $(warnings-as-errors-off) ;
compile-fail explicit_operator_bool_compile_fail_conv_pvoid.cpp
  : $(warnings-as-errors-off) ;
compile-fail explicit_operator_bool_compile_fail_delete.cpp
  : $(warnings-as-errors-off) ;
compile-fail explicit_operator_bool_compile_fail_shift.cpp
  : $(warnings-as-errors-off) ;

compile ignore_unused_test.cpp ;

run sp_typeinfo_test.cpp ;
run sp_typeinfo_test.cpp : : : <rtti>off : sp_typeinfo_test_no_rtti ;

run visit_each_test.cpp ;

run get_pointer_test.cpp ;

run lightweight_test_test.cpp
  : : : $(pedantic-errors) ;
run lightweight_test_test.cpp : : :
  <exception-handling>off $(pedantic-errors) : lightweight_test_test_no_except ;
run lightweight_test_test2.cpp
  : : : $(pedantic-errors) ;
run lightweight_test_all_with_test.cpp
  : : : $(pedantic-errors) ;
run lightweight_test_lt_le_test.cpp
  : : : $(pedantic-errors) ;
run lightweight_test_gt_ge_test.cpp
  : : : $(pedantic-errors) ;
run lightweight_test_eq_nullptr.cpp
  : : : $(pedantic-errors) ;
run lightweight_test_test3.cpp
  : : : $(pedantic-errors) ;
run lightweight_test_test4.cpp
  : : : $(pedantic-errors) ;
run lightweight_test_test5.cpp
  : : : $(pedantic-errors)
    <toolset>gcc-4.4.7:<cxxflags>-Wno-sign-compare
    <toolset>gcc-4.4:<cxxflags>-Wno-sign-compare
  ;
run lightweight_test_test6.cpp
  : : : $(pedantic-errors) ;

run-fail lightweight_test_all_eq_test.cpp ;
run-fail lightweight_test_all_with_fail.cpp ;

run-fail lightweight_test_fail.cpp ;
run-fail lightweight_test_fail2.cpp ;
run-fail lightweight_test_fail3.cpp ;
run-fail lightweight_test_fail4.cpp ;
run-fail lightweight_test_fail5.cpp ;
run-fail lightweight_test_fail6.cpp ;
run-fail lightweight_test_fail7.cpp ;
run-fail lightweight_test_fail7.cpp : : : <rtti>off <toolset>gcc-4.4:<build>no : lightweight_test_fail7_no_rtti ;
run-fail lightweight_test_fail8.cpp ;
run-fail lightweight_test_fail8.cpp : : : <rtti>off <toolset>gcc-4.4:<build>no : lightweight_test_fail8_no_rtti ;
run-fail lightweight_test_fail9.cpp ;
run-fail lightweight_test_fail10.cpp ;
run-fail lightweight_test_fail11.cpp : ;
run-fail lightweight_test_fail12.cpp ;
run-fail lightweight_test_fail13.cpp ;
run-fail lightweight_test_fail14.cpp ;
run-fail lightweight_test_fail15.cpp ;
run-fail lightweight_test_fail16.cpp : ;
run-fail lightweight_test_lt_fail.cpp ;
run-fail lightweight_test_le_fail.cpp ;
run-fail lightweight_test_gt_fail.cpp ;
run-fail lightweight_test_ge_fail.cpp ;

run lightweight_test_bool.cpp
  : : : $(pedantic-errors) ;

run lightweight_test_with_test.cpp
  : : : $(pedantic-errors) ;
run-fail lightweight_test_with_fail.cpp ;

run is_same_test.cpp ;

run typeinfo_test.cpp ;
run typeinfo_test.cpp : : : <rtti>off : typeinfo_test_no_rtti ;

run iterator_test.cpp ;
run detail_iterator_test.cpp ;

run demangle_test.cpp
  : : : <test-info>always_show_run_output ;

run demangled_name_test.cpp
  : : : <test-info>always_show_run_output ;

run demangled_name_test.cpp : : : <rtti>off <test-info>always_show_run_output : demangled_name_test_no_rtti ;

run scoped_enum.cpp ;
compile-fail scoped_enum_compile_fail_conv_from_int.cpp
  : $(warnings-as-errors-off) ;
compile-fail scoped_enum_compile_fail_conv_to_int.cpp
  : $(warnings-as-errors-off) ;

run underlying_type.cpp ;

compile-fail null_deleter_compile_fail_adl.cpp
  : $(warnings-as-errors-off) ;

run fclose_deleter_test.cpp : : :
  $(CPP11)
  <library>/boost/move//boost_move
  <library>/boost/smart_ptr//boost_smart_ptr
  <target-os>windows:<define>_CRT_SECURE_NO_WARNINGS
  <target-os>windows:<define>_CRT_SECURE_NO_DEPRECATE ;

compile-fail fclose_deleter_compile_fail_adl.cpp
  : <target-os>windows:<define>_CRT_SECURE_NO_WARNINGS <target-os>windows:<define>_CRT_SECURE_NO_DEPRECATE $(warnings-as-errors-off) ;

run functor_test.cpp ;
compile-fail functor_compile_fail_adl.cpp
  : $(warnings-as-errors-off) ;

run pointer_traits_pointer_test.cpp ;
run pointer_traits_element_type_test.cpp ;
run pointer_traits_difference_type_test.cpp ;
run pointer_traits_rebind_test.cpp ;
run pointer_traits_pointer_to_test.cpp ;
run pointer_traits_sfinae_test.cpp ;
run pointer_traits_rebind_sfinae_test.cpp ;
run pointer_traits_pointer_to_sfinae_test.cpp ;
run to_address_test.cpp ;

run exchange_test.cpp ;
run exchange_move_test.cpp ;

run first_scalar_test.cpp ;
compile first_scalar_constexpr_test.cpp ;

run empty_value_test.cpp ;
run empty_value_size_test.cpp ;
run empty_value_final_test.cpp ;
run empty_value_constexpr_test.cpp ;
compile empty_value_nested_test.cpp ;
compile-fail empty_value_compile_fail_casting.cpp ;

run quick_exit_test.cpp ;
run-fail quick_exit_fail.cpp ;

compile use_default_test.cpp ;

run default_allocator_test.cpp
  : : : <warnings>pedantic
        <toolset>msvc:<warnings-as-errors>on
        <toolset>gcc:<warnings-as-errors>on
        <toolset>clang:<warnings-as-errors>on ;
run default_allocator_allocate_hint_test.cpp ;

run noinit_adaptor_test.cpp ;
run alloc_construct_test.cpp ;
run alloc_construct_throws_test.cpp ;
run alloc_construct_cxx11_test.cpp ;

run nvp_test.cpp ;

run allocator_value_type_test.cpp ;
run allocator_pointer_test.cpp ;
run allocator_const_pointer_test.cpp ;
run allocator_void_pointer_test.cpp ;
run allocator_const_void_pointer_test.cpp ;
run allocator_difference_type_test.cpp ;
run allocator_size_type_test.cpp ;
run allocator_pocca_test.cpp ;
run allocator_pocma_test.cpp ;
run allocator_pocs_test.cpp ;
run allocator_is_always_equal_test.cpp ;
run allocator_rebind_test.cpp ;
run allocator_allocate_test.cpp ;
run allocator_allocate_hint_test.cpp ;
run allocator_deallocate_test.cpp ;
run allocator_max_size_test.cpp ;
run allocator_soccc_test.cpp ;
run allocator_construct_test.cpp ;
run allocator_destroy_test.cpp ;
run allocator_construct_n_test.cpp ;
run allocator_destroy_n_test.cpp ;
run allocator_traits_test.cpp ;
compile allocator_pmr_test.cpp ;

lib lib_typeid : lib_typeid.cpp : <link>shared:<define>LIB_TYPEID_DYN_LINK=1 ;

run test_lib_typeid.cpp lib_typeid : : : <link>shared : test_lib_typeid_shared ;
run test_lib_typeid.cpp lib_typeid : : : <link>static : test_lib_typeid_static ;

run test_lib_typeid.cpp lib_typeid : : : <link>shared <rtti>off : test_lib_typeid_shared_no_rtti ;
run test_lib_typeid.cpp lib_typeid : : : <link>static <rtti>off : test_lib_typeid_static_no_rtti ;

run test_lib_typeid2.cpp lib_typeid : : : <link>shared : test_lib_typeid2_shared ;
run test_lib_typeid2.cpp lib_typeid : : : <link>static : test_lib_typeid2_static ;

run test_lib_typeid2.cpp lib_typeid : : : <link>shared <rtti>off : test_lib_typeid2_shared_no_rtti ;
run test_lib_typeid2.cpp lib_typeid : : : <link>static <rtti>off : test_lib_typeid2_static_no_rtti ;

run uncaught_exceptions.cpp
  : : : <exception-handling>on ;
run uncaught_exceptions_np.cpp
  : : : <exception-handling>on ;

run no_exceptions_support_test.cpp : ;
run no_exceptions_support_test.cpp : : : <exception-handling>off : no_exceptions_support_test_nx ;

run cmath_test.cpp
  : : : $(pedantic-errors) ;
run cmath_test.cpp : : : <define>BOOST_CORE_USE_GENERIC_CMATH <toolset>msvc-8.0:<build>no : cmath_test_generic ;

run bit_cast_test.cpp
  : : : $(pedantic-errors) ;
run bit_rotate_test.cpp
  : : : $(pedantic-errors) ;
run bit_countr_test.cpp
  : : : $(pedantic-errors) ;
run bit_countl_test.cpp
  : : : $(pedantic-errors) ;
run bit_width_test.cpp
  : : : $(pedantic-errors) ;
run has_single_bit_test.cpp
  : : : $(pedantic-errors) ;
run bit_floor_test.cpp
  : : : $(pedantic-errors) ;
run bit_ceil_test.cpp
  : : : $(pedantic-errors) ;
run bit_popcount_test.cpp
  : : : $(pedantic-errors) ;
run bit_endian_test.cpp
  : : : $(pedantic-errors) ;
run bit_byteswap_test.cpp
  : : : $(pedantic-errors) ;

compile-fail bit_width_fail.cpp
  : <warnings>off ;

compile bit_cast_test_cx.cpp ;
compile bit_rotate_test_cx.cpp ;
compile bit_countr_test_cx.cpp ;
compile bit_countl_test_cx.cpp ;
compile bit_width_test_cx.cpp ;
compile has_single_bit_test_cx.cpp ;
compile bit_floor_test_cx.cpp ;
compile bit_ceil_test_cx.cpp ;
compile bit_popcount_test_cx.cpp ;
compile bit_byteswap_test_cx.cpp ;

run type_name_test.cpp ;

run snprintf_test.cpp ;

run sv_types_test.cpp
  : : : $(pedantic-errors) ;
run sv_construct_test.cpp
  : : : $(pedantic-errors) ;
run sv_iteration_test.cpp
  : : : $(pedantic-errors) ;
run sv_element_access_test.cpp
  : : : $(pedantic-errors) ;
run sv_modifiers_test.cpp
  : : : $(pedantic-errors) ;
run sv_copy_test.cpp
  : : : $(pedantic-errors) ;
run sv_substr_test.cpp
  : : : $(pedantic-errors) ;
run sv_compare_test.cpp
  : : : $(pedantic-errors) ;
run sv_starts_with_test.cpp
  : : : $(pedantic-errors) ;
run sv_ends_with_test.cpp
  : : : $(pedantic-errors) ;
run sv_find_test.cpp
  : : : $(pedantic-errors) ;
run sv_rfind_test.cpp
  : : : $(pedantic-errors) ;
run sv_find_first_of_test.cpp
  : : : $(pedantic-errors) <toolset>gcc-4.4:<cxxflags>-Wno-type-limits ;
run sv_find_last_of_test.cpp
  : : : $(pedantic-errors) <toolset>gcc-4.4:<cxxflags>-Wno-type-limits ;
run sv_find_first_not_of_test.cpp
  : : : $(pedantic-errors) <toolset>gcc-4.4:<cxxflags>-Wno-type-limits ;
run sv_find_last_not_of_test.cpp
  : : : $(pedantic-errors) <toolset>gcc-4.4:<cxxflags>-Wno-type-limits ;
run sv_contains_test.cpp
  : : : $(pedantic-errors) ;
run sv_eq_test.cpp
  : : : $(pedantic-errors) ;
run sv_lt_test.cpp
  : : : $(pedantic-errors) ;
run sv_stream_insert_test.cpp
  : : : $(pedantic-errors) ;
run sv_conversion_test.cpp
  : : : $(pedantic-errors) ;
run sv_conversion_test2.cpp : : : <library>/boost/utility//boost_utility ;
run sv_common_reference_test.cpp
  : : : $(pedantic-errors) ;
compile sv_common_reference_test2.cpp ;
compile sv_windows_h_test.cpp ;
compile-fail sv_nullptr_fail.cpp
  : $(warnings-as-errors-off) ;

compile sv_construct_test_cx.cpp ;
compile sv_construct_test_cx2.cpp ;

run sv_hash_test.cpp : : : $(CPP11) <library>/boost/container_hash//boost_container_hash ;

run sv_format_test.cpp
  : : : $(pedantic-errors) ;

run span_test.cpp ;
run span_types_test.cpp ;
run span_constructible_test.cpp ;
run span_deduction_guide_test.cpp ;
run span_constexpr_test.cpp ;
run as_bytes_test.cpp ;
run as_writable_bytes_test.cpp ;
compile span_boost_begin_test.cpp ;
run make_span_test.cpp ;

run splitmix64_test.cpp
  : : : $(pedantic-errors) ;

run-fail verbose_terminate_handler_fail.cpp : ;
run-fail verbose_terminate_handler_fail.cpp : : : <exception-handling>off : verbose_terminate_handler_fail_nx ;
run-fail verbose_terminate_handler_fail.cpp : : : <rtti>off : verbose_terminate_handler_fail_nr ;
run-fail verbose_terminate_handler_fail.cpp : : : <exception-handling>off <rtti>off : verbose_terminate_handler_fail_nxr ;

run launder_test.cpp ;

run alignof_test.cpp ;
run max_align_test.cpp ;

run memory_resource_test.cpp ;

run data_test.cpp ;
run size_test.cpp ;

local with-serialization =
    <library>/boost/serialization//boost_serialization/<warnings>off
    $(warnings-as-errors-off)
    <undefined-sanitizer>norecover:<link>static
    $(CPP11)
    # Serialization no longer builds under classic MinGW
    # and <toolset>gcc,<target-os>windows,<address-model>32 fails for some reason
    <toolset>gcc,<target-os>windows:<build>no
;

run serialization_nvp_test.cpp : : : $(with-serialization) <undefined-sanitizer>norecover:<build>no ;
run serialization_split_free_test.cpp : : : $(with-serialization) ;
run serialization_split_member_test.cpp : : : $(with-serialization) ;
run serialization_construct_data_test.cpp : : : $(with-serialization) ;

run identity_test.cpp ;
run identity_rvalue_test.cpp ;

run sp_thread_pause_test.cpp ;
run sp_thread_yield_test.cpp ;
run sp_thread_sleep_test.cpp ;
run yield_prim_windows_h_test.cpp ;
run yield_prim_pthread_cancel_test.cpp : ;

run pointer_in_range_test.cpp ;
compile pointer_in_range_constexpr_test.cpp ;

run minstd_rand_test.cpp
  : : : $(pedantic-errors) ;

use-project /boost/core/swap : ./swap ;
build-project ./swap ;