version.version.pass.cpp 74 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197
  1. //===----------------------------------------------------------------------===//
  2. //
  3. // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
  4. // See https://llvm.org/LICENSE.txt for license information.
  5. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
  6. //
  7. //===----------------------------------------------------------------------===//
  8. //
  9. // WARNING: This test was generated by generate_feature_test_macro_components.py
  10. // and should not be edited manually.
  11. // <version>
  12. // Test the feature test macros defined by <version>
  13. /* Constant Value
  14. __cpp_lib_addressof_constexpr 201603L [C++17]
  15. __cpp_lib_allocator_traits_is_always_equal 201411L [C++17]
  16. __cpp_lib_any 201606L [C++17]
  17. __cpp_lib_apply 201603L [C++17]
  18. __cpp_lib_array_constexpr 201603L [C++17]
  19. __cpp_lib_as_const 201510L [C++17]
  20. __cpp_lib_atomic_is_always_lock_free 201603L [C++17]
  21. __cpp_lib_atomic_ref 201806L [C++2a]
  22. __cpp_lib_bind_front 201811L [C++2a]
  23. __cpp_lib_bit_cast 201806L [C++2a]
  24. __cpp_lib_bool_constant 201505L [C++17]
  25. __cpp_lib_boyer_moore_searcher 201603L [C++17]
  26. __cpp_lib_byte 201603L [C++17]
  27. __cpp_lib_char8_t 201811L [C++2a]
  28. __cpp_lib_chrono 201611L [C++17]
  29. __cpp_lib_chrono_udls 201304L [C++14]
  30. __cpp_lib_clamp 201603L [C++17]
  31. __cpp_lib_complex_udls 201309L [C++14]
  32. __cpp_lib_concepts 201806L [C++2a]
  33. __cpp_lib_constexpr_misc 201811L [C++2a]
  34. __cpp_lib_constexpr_swap_algorithms 201806L [C++2a]
  35. __cpp_lib_destroying_delete 201806L [C++2a]
  36. __cpp_lib_enable_shared_from_this 201603L [C++17]
  37. __cpp_lib_erase_if 201811L [C++2a]
  38. __cpp_lib_exchange_function 201304L [C++14]
  39. __cpp_lib_execution 201603L [C++17]
  40. __cpp_lib_filesystem 201703L [C++17]
  41. __cpp_lib_gcd_lcm 201606L [C++17]
  42. __cpp_lib_generic_associative_lookup 201304L [C++14]
  43. __cpp_lib_generic_unordered_lookup 201811L [C++2a]
  44. __cpp_lib_hardware_interference_size 201703L [C++17]
  45. __cpp_lib_has_unique_object_representations 201606L [C++17]
  46. __cpp_lib_hypot 201603L [C++17]
  47. __cpp_lib_incomplete_container_elements 201505L [C++17]
  48. __cpp_lib_integer_sequence 201304L [C++14]
  49. __cpp_lib_integral_constant_callable 201304L [C++14]
  50. __cpp_lib_interpolate 201902L [C++2a]
  51. __cpp_lib_invoke 201411L [C++17]
  52. __cpp_lib_is_aggregate 201703L [C++17]
  53. __cpp_lib_is_constant_evaluated 201811L [C++2a]
  54. __cpp_lib_is_final 201402L [C++14]
  55. __cpp_lib_is_invocable 201703L [C++17]
  56. __cpp_lib_is_null_pointer 201309L [C++14]
  57. __cpp_lib_is_swappable 201603L [C++17]
  58. __cpp_lib_launder 201606L [C++17]
  59. __cpp_lib_list_remove_return_type 201806L [C++2a]
  60. __cpp_lib_logical_traits 201510L [C++17]
  61. __cpp_lib_make_from_tuple 201606L [C++17]
  62. __cpp_lib_make_reverse_iterator 201402L [C++14]
  63. __cpp_lib_make_unique 201304L [C++14]
  64. __cpp_lib_map_try_emplace 201411L [C++17]
  65. __cpp_lib_math_special_functions 201603L [C++17]
  66. __cpp_lib_memory_resource 201603L [C++17]
  67. __cpp_lib_node_extract 201606L [C++17]
  68. __cpp_lib_nonmember_container_access 201411L [C++17]
  69. __cpp_lib_not_fn 201603L [C++17]
  70. __cpp_lib_null_iterators 201304L [C++14]
  71. __cpp_lib_optional 201606L [C++17]
  72. __cpp_lib_parallel_algorithm 201603L [C++17]
  73. __cpp_lib_quoted_string_io 201304L [C++14]
  74. __cpp_lib_ranges 201811L [C++2a]
  75. __cpp_lib_raw_memory_algorithms 201606L [C++17]
  76. __cpp_lib_result_of_sfinae 201210L [C++14]
  77. __cpp_lib_robust_nonmodifying_seq_ops 201304L [C++14]
  78. __cpp_lib_sample 201603L [C++17]
  79. __cpp_lib_scoped_lock 201703L [C++17]
  80. __cpp_lib_shared_mutex 201505L [C++17]
  81. __cpp_lib_shared_ptr_arrays 201611L [C++17]
  82. __cpp_lib_shared_ptr_weak_type 201606L [C++17]
  83. __cpp_lib_shared_timed_mutex 201402L [C++14]
  84. __cpp_lib_string_udls 201304L [C++14]
  85. __cpp_lib_string_view 201606L [C++17]
  86. __cpp_lib_three_way_comparison 201711L [C++2a]
  87. __cpp_lib_to_chars 201611L [C++17]
  88. __cpp_lib_transformation_trait_aliases 201304L [C++14]
  89. __cpp_lib_transparent_operators 201210L [C++14]
  90. 201510L [C++17]
  91. __cpp_lib_tuple_element_t 201402L [C++14]
  92. __cpp_lib_tuples_by_type 201304L [C++14]
  93. __cpp_lib_type_trait_variable_templates 201510L [C++17]
  94. __cpp_lib_uncaught_exceptions 201411L [C++17]
  95. __cpp_lib_unordered_map_try_emplace 201411L [C++17]
  96. __cpp_lib_variant 201606L [C++17]
  97. __cpp_lib_void_t 201411L [C++17]
  98. */
  99. #include <version>
  100. #include "test_macros.h"
  101. #if TEST_STD_VER < 14
  102. # ifdef __cpp_lib_addressof_constexpr
  103. # error "__cpp_lib_addressof_constexpr should not be defined before c++17"
  104. # endif
  105. # ifdef __cpp_lib_allocator_traits_is_always_equal
  106. # error "__cpp_lib_allocator_traits_is_always_equal should not be defined before c++17"
  107. # endif
  108. # ifdef __cpp_lib_any
  109. # error "__cpp_lib_any should not be defined before c++17"
  110. # endif
  111. # ifdef __cpp_lib_apply
  112. # error "__cpp_lib_apply should not be defined before c++17"
  113. # endif
  114. # ifdef __cpp_lib_array_constexpr
  115. # error "__cpp_lib_array_constexpr should not be defined before c++17"
  116. # endif
  117. # ifdef __cpp_lib_as_const
  118. # error "__cpp_lib_as_const should not be defined before c++17"
  119. # endif
  120. # ifdef __cpp_lib_atomic_is_always_lock_free
  121. # error "__cpp_lib_atomic_is_always_lock_free should not be defined before c++17"
  122. # endif
  123. # ifdef __cpp_lib_atomic_ref
  124. # error "__cpp_lib_atomic_ref should not be defined before c++2a"
  125. # endif
  126. # ifdef __cpp_lib_bind_front
  127. # error "__cpp_lib_bind_front should not be defined before c++2a"
  128. # endif
  129. # ifdef __cpp_lib_bit_cast
  130. # error "__cpp_lib_bit_cast should not be defined before c++2a"
  131. # endif
  132. # ifdef __cpp_lib_bool_constant
  133. # error "__cpp_lib_bool_constant should not be defined before c++17"
  134. # endif
  135. # ifdef __cpp_lib_boyer_moore_searcher
  136. # error "__cpp_lib_boyer_moore_searcher should not be defined before c++17"
  137. # endif
  138. # ifdef __cpp_lib_byte
  139. # error "__cpp_lib_byte should not be defined before c++17"
  140. # endif
  141. # ifdef __cpp_lib_char8_t
  142. # error "__cpp_lib_char8_t should not be defined before c++2a"
  143. # endif
  144. # ifdef __cpp_lib_chrono
  145. # error "__cpp_lib_chrono should not be defined before c++17"
  146. # endif
  147. # ifdef __cpp_lib_chrono_udls
  148. # error "__cpp_lib_chrono_udls should not be defined before c++14"
  149. # endif
  150. # ifdef __cpp_lib_clamp
  151. # error "__cpp_lib_clamp should not be defined before c++17"
  152. # endif
  153. # ifdef __cpp_lib_complex_udls
  154. # error "__cpp_lib_complex_udls should not be defined before c++14"
  155. # endif
  156. # ifdef __cpp_lib_concepts
  157. # error "__cpp_lib_concepts should not be defined before c++2a"
  158. # endif
  159. # ifdef __cpp_lib_constexpr_misc
  160. # error "__cpp_lib_constexpr_misc should not be defined before c++2a"
  161. # endif
  162. # ifdef __cpp_lib_constexpr_swap_algorithms
  163. # error "__cpp_lib_constexpr_swap_algorithms should not be defined before c++2a"
  164. # endif
  165. # ifdef __cpp_lib_destroying_delete
  166. # error "__cpp_lib_destroying_delete should not be defined before c++2a"
  167. # endif
  168. # ifdef __cpp_lib_enable_shared_from_this
  169. # error "__cpp_lib_enable_shared_from_this should not be defined before c++17"
  170. # endif
  171. # ifdef __cpp_lib_erase_if
  172. # error "__cpp_lib_erase_if should not be defined before c++2a"
  173. # endif
  174. # ifdef __cpp_lib_exchange_function
  175. # error "__cpp_lib_exchange_function should not be defined before c++14"
  176. # endif
  177. # ifdef __cpp_lib_execution
  178. # error "__cpp_lib_execution should not be defined before c++17"
  179. # endif
  180. # ifdef __cpp_lib_filesystem
  181. # error "__cpp_lib_filesystem should not be defined before c++17"
  182. # endif
  183. # ifdef __cpp_lib_gcd_lcm
  184. # error "__cpp_lib_gcd_lcm should not be defined before c++17"
  185. # endif
  186. # ifdef __cpp_lib_generic_associative_lookup
  187. # error "__cpp_lib_generic_associative_lookup should not be defined before c++14"
  188. # endif
  189. # ifdef __cpp_lib_generic_unordered_lookup
  190. # error "__cpp_lib_generic_unordered_lookup should not be defined before c++2a"
  191. # endif
  192. # ifdef __cpp_lib_hardware_interference_size
  193. # error "__cpp_lib_hardware_interference_size should not be defined before c++17"
  194. # endif
  195. # ifdef __cpp_lib_has_unique_object_representations
  196. # error "__cpp_lib_has_unique_object_representations should not be defined before c++17"
  197. # endif
  198. # ifdef __cpp_lib_hypot
  199. # error "__cpp_lib_hypot should not be defined before c++17"
  200. # endif
  201. # ifdef __cpp_lib_incomplete_container_elements
  202. # error "__cpp_lib_incomplete_container_elements should not be defined before c++17"
  203. # endif
  204. # ifdef __cpp_lib_integer_sequence
  205. # error "__cpp_lib_integer_sequence should not be defined before c++14"
  206. # endif
  207. # ifdef __cpp_lib_integral_constant_callable
  208. # error "__cpp_lib_integral_constant_callable should not be defined before c++14"
  209. # endif
  210. # ifdef __cpp_lib_interpolate
  211. # error "__cpp_lib_interpolate should not be defined before c++2a"
  212. # endif
  213. # ifdef __cpp_lib_invoke
  214. # error "__cpp_lib_invoke should not be defined before c++17"
  215. # endif
  216. # ifdef __cpp_lib_is_aggregate
  217. # error "__cpp_lib_is_aggregate should not be defined before c++17"
  218. # endif
  219. # ifdef __cpp_lib_is_constant_evaluated
  220. # error "__cpp_lib_is_constant_evaluated should not be defined before c++2a"
  221. # endif
  222. # ifdef __cpp_lib_is_final
  223. # error "__cpp_lib_is_final should not be defined before c++14"
  224. # endif
  225. # ifdef __cpp_lib_is_invocable
  226. # error "__cpp_lib_is_invocable should not be defined before c++17"
  227. # endif
  228. # ifdef __cpp_lib_is_null_pointer
  229. # error "__cpp_lib_is_null_pointer should not be defined before c++14"
  230. # endif
  231. # ifdef __cpp_lib_is_swappable
  232. # error "__cpp_lib_is_swappable should not be defined before c++17"
  233. # endif
  234. # ifdef __cpp_lib_launder
  235. # error "__cpp_lib_launder should not be defined before c++17"
  236. # endif
  237. # ifdef __cpp_lib_list_remove_return_type
  238. # error "__cpp_lib_list_remove_return_type should not be defined before c++2a"
  239. # endif
  240. # ifdef __cpp_lib_logical_traits
  241. # error "__cpp_lib_logical_traits should not be defined before c++17"
  242. # endif
  243. # ifdef __cpp_lib_make_from_tuple
  244. # error "__cpp_lib_make_from_tuple should not be defined before c++17"
  245. # endif
  246. # ifdef __cpp_lib_make_reverse_iterator
  247. # error "__cpp_lib_make_reverse_iterator should not be defined before c++14"
  248. # endif
  249. # ifdef __cpp_lib_make_unique
  250. # error "__cpp_lib_make_unique should not be defined before c++14"
  251. # endif
  252. # ifdef __cpp_lib_map_try_emplace
  253. # error "__cpp_lib_map_try_emplace should not be defined before c++17"
  254. # endif
  255. # ifdef __cpp_lib_math_special_functions
  256. # error "__cpp_lib_math_special_functions should not be defined before c++17"
  257. # endif
  258. # ifdef __cpp_lib_memory_resource
  259. # error "__cpp_lib_memory_resource should not be defined before c++17"
  260. # endif
  261. # ifdef __cpp_lib_node_extract
  262. # error "__cpp_lib_node_extract should not be defined before c++17"
  263. # endif
  264. # ifdef __cpp_lib_nonmember_container_access
  265. # error "__cpp_lib_nonmember_container_access should not be defined before c++17"
  266. # endif
  267. # ifdef __cpp_lib_not_fn
  268. # error "__cpp_lib_not_fn should not be defined before c++17"
  269. # endif
  270. # ifdef __cpp_lib_null_iterators
  271. # error "__cpp_lib_null_iterators should not be defined before c++14"
  272. # endif
  273. # ifdef __cpp_lib_optional
  274. # error "__cpp_lib_optional should not be defined before c++17"
  275. # endif
  276. # ifdef __cpp_lib_parallel_algorithm
  277. # error "__cpp_lib_parallel_algorithm should not be defined before c++17"
  278. # endif
  279. # ifdef __cpp_lib_quoted_string_io
  280. # error "__cpp_lib_quoted_string_io should not be defined before c++14"
  281. # endif
  282. # ifdef __cpp_lib_ranges
  283. # error "__cpp_lib_ranges should not be defined before c++2a"
  284. # endif
  285. # ifdef __cpp_lib_raw_memory_algorithms
  286. # error "__cpp_lib_raw_memory_algorithms should not be defined before c++17"
  287. # endif
  288. # ifdef __cpp_lib_result_of_sfinae
  289. # error "__cpp_lib_result_of_sfinae should not be defined before c++14"
  290. # endif
  291. # ifdef __cpp_lib_robust_nonmodifying_seq_ops
  292. # error "__cpp_lib_robust_nonmodifying_seq_ops should not be defined before c++14"
  293. # endif
  294. # ifdef __cpp_lib_sample
  295. # error "__cpp_lib_sample should not be defined before c++17"
  296. # endif
  297. # ifdef __cpp_lib_scoped_lock
  298. # error "__cpp_lib_scoped_lock should not be defined before c++17"
  299. # endif
  300. # ifdef __cpp_lib_shared_mutex
  301. # error "__cpp_lib_shared_mutex should not be defined before c++17"
  302. # endif
  303. # ifdef __cpp_lib_shared_ptr_arrays
  304. # error "__cpp_lib_shared_ptr_arrays should not be defined before c++17"
  305. # endif
  306. # ifdef __cpp_lib_shared_ptr_weak_type
  307. # error "__cpp_lib_shared_ptr_weak_type should not be defined before c++17"
  308. # endif
  309. # ifdef __cpp_lib_shared_timed_mutex
  310. # error "__cpp_lib_shared_timed_mutex should not be defined before c++14"
  311. # endif
  312. # ifdef __cpp_lib_string_udls
  313. # error "__cpp_lib_string_udls should not be defined before c++14"
  314. # endif
  315. # ifdef __cpp_lib_string_view
  316. # error "__cpp_lib_string_view should not be defined before c++17"
  317. # endif
  318. # ifdef __cpp_lib_three_way_comparison
  319. # error "__cpp_lib_three_way_comparison should not be defined before c++2a"
  320. # endif
  321. # ifdef __cpp_lib_to_chars
  322. # error "__cpp_lib_to_chars should not be defined before c++17"
  323. # endif
  324. # ifdef __cpp_lib_transformation_trait_aliases
  325. # error "__cpp_lib_transformation_trait_aliases should not be defined before c++14"
  326. # endif
  327. # ifdef __cpp_lib_transparent_operators
  328. # error "__cpp_lib_transparent_operators should not be defined before c++14"
  329. # endif
  330. # ifdef __cpp_lib_tuple_element_t
  331. # error "__cpp_lib_tuple_element_t should not be defined before c++14"
  332. # endif
  333. # ifdef __cpp_lib_tuples_by_type
  334. # error "__cpp_lib_tuples_by_type should not be defined before c++14"
  335. # endif
  336. # ifdef __cpp_lib_type_trait_variable_templates
  337. # error "__cpp_lib_type_trait_variable_templates should not be defined before c++17"
  338. # endif
  339. # ifdef __cpp_lib_uncaught_exceptions
  340. # error "__cpp_lib_uncaught_exceptions should not be defined before c++17"
  341. # endif
  342. # ifdef __cpp_lib_unordered_map_try_emplace
  343. # error "__cpp_lib_unordered_map_try_emplace should not be defined before c++17"
  344. # endif
  345. # ifdef __cpp_lib_variant
  346. # error "__cpp_lib_variant should not be defined before c++17"
  347. # endif
  348. # ifdef __cpp_lib_void_t
  349. # error "__cpp_lib_void_t should not be defined before c++17"
  350. # endif
  351. #elif TEST_STD_VER == 14
  352. # ifdef __cpp_lib_addressof_constexpr
  353. # error "__cpp_lib_addressof_constexpr should not be defined before c++17"
  354. # endif
  355. # ifdef __cpp_lib_allocator_traits_is_always_equal
  356. # error "__cpp_lib_allocator_traits_is_always_equal should not be defined before c++17"
  357. # endif
  358. # ifdef __cpp_lib_any
  359. # error "__cpp_lib_any should not be defined before c++17"
  360. # endif
  361. # ifdef __cpp_lib_apply
  362. # error "__cpp_lib_apply should not be defined before c++17"
  363. # endif
  364. # ifdef __cpp_lib_array_constexpr
  365. # error "__cpp_lib_array_constexpr should not be defined before c++17"
  366. # endif
  367. # ifdef __cpp_lib_as_const
  368. # error "__cpp_lib_as_const should not be defined before c++17"
  369. # endif
  370. # ifdef __cpp_lib_atomic_is_always_lock_free
  371. # error "__cpp_lib_atomic_is_always_lock_free should not be defined before c++17"
  372. # endif
  373. # ifdef __cpp_lib_atomic_ref
  374. # error "__cpp_lib_atomic_ref should not be defined before c++2a"
  375. # endif
  376. # ifdef __cpp_lib_bind_front
  377. # error "__cpp_lib_bind_front should not be defined before c++2a"
  378. # endif
  379. # ifdef __cpp_lib_bit_cast
  380. # error "__cpp_lib_bit_cast should not be defined before c++2a"
  381. # endif
  382. # ifdef __cpp_lib_bool_constant
  383. # error "__cpp_lib_bool_constant should not be defined before c++17"
  384. # endif
  385. # ifdef __cpp_lib_boyer_moore_searcher
  386. # error "__cpp_lib_boyer_moore_searcher should not be defined before c++17"
  387. # endif
  388. # ifdef __cpp_lib_byte
  389. # error "__cpp_lib_byte should not be defined before c++17"
  390. # endif
  391. # ifdef __cpp_lib_char8_t
  392. # error "__cpp_lib_char8_t should not be defined before c++2a"
  393. # endif
  394. # ifdef __cpp_lib_chrono
  395. # error "__cpp_lib_chrono should not be defined before c++17"
  396. # endif
  397. # ifndef __cpp_lib_chrono_udls
  398. # error "__cpp_lib_chrono_udls should be defined in c++14"
  399. # endif
  400. # if __cpp_lib_chrono_udls != 201304L
  401. # error "__cpp_lib_chrono_udls should have the value 201304L in c++14"
  402. # endif
  403. # ifdef __cpp_lib_clamp
  404. # error "__cpp_lib_clamp should not be defined before c++17"
  405. # endif
  406. # ifndef __cpp_lib_complex_udls
  407. # error "__cpp_lib_complex_udls should be defined in c++14"
  408. # endif
  409. # if __cpp_lib_complex_udls != 201309L
  410. # error "__cpp_lib_complex_udls should have the value 201309L in c++14"
  411. # endif
  412. # ifdef __cpp_lib_concepts
  413. # error "__cpp_lib_concepts should not be defined before c++2a"
  414. # endif
  415. # ifdef __cpp_lib_constexpr_misc
  416. # error "__cpp_lib_constexpr_misc should not be defined before c++2a"
  417. # endif
  418. # ifdef __cpp_lib_constexpr_swap_algorithms
  419. # error "__cpp_lib_constexpr_swap_algorithms should not be defined before c++2a"
  420. # endif
  421. # ifdef __cpp_lib_destroying_delete
  422. # error "__cpp_lib_destroying_delete should not be defined before c++2a"
  423. # endif
  424. # ifdef __cpp_lib_enable_shared_from_this
  425. # error "__cpp_lib_enable_shared_from_this should not be defined before c++17"
  426. # endif
  427. # ifdef __cpp_lib_erase_if
  428. # error "__cpp_lib_erase_if should not be defined before c++2a"
  429. # endif
  430. # ifndef __cpp_lib_exchange_function
  431. # error "__cpp_lib_exchange_function should be defined in c++14"
  432. # endif
  433. # if __cpp_lib_exchange_function != 201304L
  434. # error "__cpp_lib_exchange_function should have the value 201304L in c++14"
  435. # endif
  436. # ifdef __cpp_lib_execution
  437. # error "__cpp_lib_execution should not be defined before c++17"
  438. # endif
  439. # ifdef __cpp_lib_filesystem
  440. # error "__cpp_lib_filesystem should not be defined before c++17"
  441. # endif
  442. # ifdef __cpp_lib_gcd_lcm
  443. # error "__cpp_lib_gcd_lcm should not be defined before c++17"
  444. # endif
  445. # ifndef __cpp_lib_generic_associative_lookup
  446. # error "__cpp_lib_generic_associative_lookup should be defined in c++14"
  447. # endif
  448. # if __cpp_lib_generic_associative_lookup != 201304L
  449. # error "__cpp_lib_generic_associative_lookup should have the value 201304L in c++14"
  450. # endif
  451. # ifdef __cpp_lib_generic_unordered_lookup
  452. # error "__cpp_lib_generic_unordered_lookup should not be defined before c++2a"
  453. # endif
  454. # ifdef __cpp_lib_hardware_interference_size
  455. # error "__cpp_lib_hardware_interference_size should not be defined before c++17"
  456. # endif
  457. # ifdef __cpp_lib_has_unique_object_representations
  458. # error "__cpp_lib_has_unique_object_representations should not be defined before c++17"
  459. # endif
  460. # ifdef __cpp_lib_hypot
  461. # error "__cpp_lib_hypot should not be defined before c++17"
  462. # endif
  463. # ifdef __cpp_lib_incomplete_container_elements
  464. # error "__cpp_lib_incomplete_container_elements should not be defined before c++17"
  465. # endif
  466. # ifndef __cpp_lib_integer_sequence
  467. # error "__cpp_lib_integer_sequence should be defined in c++14"
  468. # endif
  469. # if __cpp_lib_integer_sequence != 201304L
  470. # error "__cpp_lib_integer_sequence should have the value 201304L in c++14"
  471. # endif
  472. # ifndef __cpp_lib_integral_constant_callable
  473. # error "__cpp_lib_integral_constant_callable should be defined in c++14"
  474. # endif
  475. # if __cpp_lib_integral_constant_callable != 201304L
  476. # error "__cpp_lib_integral_constant_callable should have the value 201304L in c++14"
  477. # endif
  478. # ifdef __cpp_lib_interpolate
  479. # error "__cpp_lib_interpolate should not be defined before c++2a"
  480. # endif
  481. # ifdef __cpp_lib_invoke
  482. # error "__cpp_lib_invoke should not be defined before c++17"
  483. # endif
  484. # ifdef __cpp_lib_is_aggregate
  485. # error "__cpp_lib_is_aggregate should not be defined before c++17"
  486. # endif
  487. # ifdef __cpp_lib_is_constant_evaluated
  488. # error "__cpp_lib_is_constant_evaluated should not be defined before c++2a"
  489. # endif
  490. # ifndef __cpp_lib_is_final
  491. # error "__cpp_lib_is_final should be defined in c++14"
  492. # endif
  493. # if __cpp_lib_is_final != 201402L
  494. # error "__cpp_lib_is_final should have the value 201402L in c++14"
  495. # endif
  496. # ifdef __cpp_lib_is_invocable
  497. # error "__cpp_lib_is_invocable should not be defined before c++17"
  498. # endif
  499. # ifndef __cpp_lib_is_null_pointer
  500. # error "__cpp_lib_is_null_pointer should be defined in c++14"
  501. # endif
  502. # if __cpp_lib_is_null_pointer != 201309L
  503. # error "__cpp_lib_is_null_pointer should have the value 201309L in c++14"
  504. # endif
  505. # ifdef __cpp_lib_is_swappable
  506. # error "__cpp_lib_is_swappable should not be defined before c++17"
  507. # endif
  508. # ifdef __cpp_lib_launder
  509. # error "__cpp_lib_launder should not be defined before c++17"
  510. # endif
  511. # ifdef __cpp_lib_list_remove_return_type
  512. # error "__cpp_lib_list_remove_return_type should not be defined before c++2a"
  513. # endif
  514. # ifdef __cpp_lib_logical_traits
  515. # error "__cpp_lib_logical_traits should not be defined before c++17"
  516. # endif
  517. # ifdef __cpp_lib_make_from_tuple
  518. # error "__cpp_lib_make_from_tuple should not be defined before c++17"
  519. # endif
  520. # ifndef __cpp_lib_make_reverse_iterator
  521. # error "__cpp_lib_make_reverse_iterator should be defined in c++14"
  522. # endif
  523. # if __cpp_lib_make_reverse_iterator != 201402L
  524. # error "__cpp_lib_make_reverse_iterator should have the value 201402L in c++14"
  525. # endif
  526. # ifndef __cpp_lib_make_unique
  527. # error "__cpp_lib_make_unique should be defined in c++14"
  528. # endif
  529. # if __cpp_lib_make_unique != 201304L
  530. # error "__cpp_lib_make_unique should have the value 201304L in c++14"
  531. # endif
  532. # ifdef __cpp_lib_map_try_emplace
  533. # error "__cpp_lib_map_try_emplace should not be defined before c++17"
  534. # endif
  535. # ifdef __cpp_lib_math_special_functions
  536. # error "__cpp_lib_math_special_functions should not be defined before c++17"
  537. # endif
  538. # ifdef __cpp_lib_memory_resource
  539. # error "__cpp_lib_memory_resource should not be defined before c++17"
  540. # endif
  541. # ifdef __cpp_lib_node_extract
  542. # error "__cpp_lib_node_extract should not be defined before c++17"
  543. # endif
  544. # ifdef __cpp_lib_nonmember_container_access
  545. # error "__cpp_lib_nonmember_container_access should not be defined before c++17"
  546. # endif
  547. # ifdef __cpp_lib_not_fn
  548. # error "__cpp_lib_not_fn should not be defined before c++17"
  549. # endif
  550. # ifndef __cpp_lib_null_iterators
  551. # error "__cpp_lib_null_iterators should be defined in c++14"
  552. # endif
  553. # if __cpp_lib_null_iterators != 201304L
  554. # error "__cpp_lib_null_iterators should have the value 201304L in c++14"
  555. # endif
  556. # ifdef __cpp_lib_optional
  557. # error "__cpp_lib_optional should not be defined before c++17"
  558. # endif
  559. # ifdef __cpp_lib_parallel_algorithm
  560. # error "__cpp_lib_parallel_algorithm should not be defined before c++17"
  561. # endif
  562. # ifndef __cpp_lib_quoted_string_io
  563. # error "__cpp_lib_quoted_string_io should be defined in c++14"
  564. # endif
  565. # if __cpp_lib_quoted_string_io != 201304L
  566. # error "__cpp_lib_quoted_string_io should have the value 201304L in c++14"
  567. # endif
  568. # ifdef __cpp_lib_ranges
  569. # error "__cpp_lib_ranges should not be defined before c++2a"
  570. # endif
  571. # ifdef __cpp_lib_raw_memory_algorithms
  572. # error "__cpp_lib_raw_memory_algorithms should not be defined before c++17"
  573. # endif
  574. # ifndef __cpp_lib_result_of_sfinae
  575. # error "__cpp_lib_result_of_sfinae should be defined in c++14"
  576. # endif
  577. # if __cpp_lib_result_of_sfinae != 201210L
  578. # error "__cpp_lib_result_of_sfinae should have the value 201210L in c++14"
  579. # endif
  580. # ifndef __cpp_lib_robust_nonmodifying_seq_ops
  581. # error "__cpp_lib_robust_nonmodifying_seq_ops should be defined in c++14"
  582. # endif
  583. # if __cpp_lib_robust_nonmodifying_seq_ops != 201304L
  584. # error "__cpp_lib_robust_nonmodifying_seq_ops should have the value 201304L in c++14"
  585. # endif
  586. # ifdef __cpp_lib_sample
  587. # error "__cpp_lib_sample should not be defined before c++17"
  588. # endif
  589. # ifdef __cpp_lib_scoped_lock
  590. # error "__cpp_lib_scoped_lock should not be defined before c++17"
  591. # endif
  592. # ifdef __cpp_lib_shared_mutex
  593. # error "__cpp_lib_shared_mutex should not be defined before c++17"
  594. # endif
  595. # ifdef __cpp_lib_shared_ptr_arrays
  596. # error "__cpp_lib_shared_ptr_arrays should not be defined before c++17"
  597. # endif
  598. # ifdef __cpp_lib_shared_ptr_weak_type
  599. # error "__cpp_lib_shared_ptr_weak_type should not be defined before c++17"
  600. # endif
  601. # if !defined(_LIBCPP_HAS_NO_THREADS)
  602. # ifndef __cpp_lib_shared_timed_mutex
  603. # error "__cpp_lib_shared_timed_mutex should be defined in c++14"
  604. # endif
  605. # if __cpp_lib_shared_timed_mutex != 201402L
  606. # error "__cpp_lib_shared_timed_mutex should have the value 201402L in c++14"
  607. # endif
  608. # else
  609. # ifdef __cpp_lib_shared_timed_mutex
  610. # error "__cpp_lib_shared_timed_mutex should not be defined when !defined(_LIBCPP_HAS_NO_THREADS) is not defined!"
  611. # endif
  612. # endif
  613. # ifndef __cpp_lib_string_udls
  614. # error "__cpp_lib_string_udls should be defined in c++14"
  615. # endif
  616. # if __cpp_lib_string_udls != 201304L
  617. # error "__cpp_lib_string_udls should have the value 201304L in c++14"
  618. # endif
  619. # ifdef __cpp_lib_string_view
  620. # error "__cpp_lib_string_view should not be defined before c++17"
  621. # endif
  622. # ifdef __cpp_lib_three_way_comparison
  623. # error "__cpp_lib_three_way_comparison should not be defined before c++2a"
  624. # endif
  625. # ifdef __cpp_lib_to_chars
  626. # error "__cpp_lib_to_chars should not be defined before c++17"
  627. # endif
  628. # ifndef __cpp_lib_transformation_trait_aliases
  629. # error "__cpp_lib_transformation_trait_aliases should be defined in c++14"
  630. # endif
  631. # if __cpp_lib_transformation_trait_aliases != 201304L
  632. # error "__cpp_lib_transformation_trait_aliases should have the value 201304L in c++14"
  633. # endif
  634. # ifndef __cpp_lib_transparent_operators
  635. # error "__cpp_lib_transparent_operators should be defined in c++14"
  636. # endif
  637. # if __cpp_lib_transparent_operators != 201210L
  638. # error "__cpp_lib_transparent_operators should have the value 201210L in c++14"
  639. # endif
  640. # ifndef __cpp_lib_tuple_element_t
  641. # error "__cpp_lib_tuple_element_t should be defined in c++14"
  642. # endif
  643. # if __cpp_lib_tuple_element_t != 201402L
  644. # error "__cpp_lib_tuple_element_t should have the value 201402L in c++14"
  645. # endif
  646. # ifndef __cpp_lib_tuples_by_type
  647. # error "__cpp_lib_tuples_by_type should be defined in c++14"
  648. # endif
  649. # if __cpp_lib_tuples_by_type != 201304L
  650. # error "__cpp_lib_tuples_by_type should have the value 201304L in c++14"
  651. # endif
  652. # ifdef __cpp_lib_type_trait_variable_templates
  653. # error "__cpp_lib_type_trait_variable_templates should not be defined before c++17"
  654. # endif
  655. # ifdef __cpp_lib_uncaught_exceptions
  656. # error "__cpp_lib_uncaught_exceptions should not be defined before c++17"
  657. # endif
  658. # ifdef __cpp_lib_unordered_map_try_emplace
  659. # error "__cpp_lib_unordered_map_try_emplace should not be defined before c++17"
  660. # endif
  661. # ifdef __cpp_lib_variant
  662. # error "__cpp_lib_variant should not be defined before c++17"
  663. # endif
  664. # ifdef __cpp_lib_void_t
  665. # error "__cpp_lib_void_t should not be defined before c++17"
  666. # endif
  667. #elif TEST_STD_VER == 17
  668. # if TEST_HAS_BUILTIN(__builtin_addressof) || TEST_GCC_VER >= 700
  669. # ifndef __cpp_lib_addressof_constexpr
  670. # error "__cpp_lib_addressof_constexpr should be defined in c++17"
  671. # endif
  672. # if __cpp_lib_addressof_constexpr != 201603L
  673. # error "__cpp_lib_addressof_constexpr should have the value 201603L in c++17"
  674. # endif
  675. # else
  676. # ifdef __cpp_lib_addressof_constexpr
  677. # error "__cpp_lib_addressof_constexpr should not be defined when TEST_HAS_BUILTIN(__builtin_addressof) || TEST_GCC_VER >= 700 is not defined!"
  678. # endif
  679. # endif
  680. # ifndef __cpp_lib_allocator_traits_is_always_equal
  681. # error "__cpp_lib_allocator_traits_is_always_equal should be defined in c++17"
  682. # endif
  683. # if __cpp_lib_allocator_traits_is_always_equal != 201411L
  684. # error "__cpp_lib_allocator_traits_is_always_equal should have the value 201411L in c++17"
  685. # endif
  686. # ifndef __cpp_lib_any
  687. # error "__cpp_lib_any should be defined in c++17"
  688. # endif
  689. # if __cpp_lib_any != 201606L
  690. # error "__cpp_lib_any should have the value 201606L in c++17"
  691. # endif
  692. # ifndef __cpp_lib_apply
  693. # error "__cpp_lib_apply should be defined in c++17"
  694. # endif
  695. # if __cpp_lib_apply != 201603L
  696. # error "__cpp_lib_apply should have the value 201603L in c++17"
  697. # endif
  698. # ifndef __cpp_lib_array_constexpr
  699. # error "__cpp_lib_array_constexpr should be defined in c++17"
  700. # endif
  701. # if __cpp_lib_array_constexpr != 201603L
  702. # error "__cpp_lib_array_constexpr should have the value 201603L in c++17"
  703. # endif
  704. # ifndef __cpp_lib_as_const
  705. # error "__cpp_lib_as_const should be defined in c++17"
  706. # endif
  707. # if __cpp_lib_as_const != 201510L
  708. # error "__cpp_lib_as_const should have the value 201510L in c++17"
  709. # endif
  710. # if !defined(_LIBCPP_HAS_NO_THREADS)
  711. # ifndef __cpp_lib_atomic_is_always_lock_free
  712. # error "__cpp_lib_atomic_is_always_lock_free should be defined in c++17"
  713. # endif
  714. # if __cpp_lib_atomic_is_always_lock_free != 201603L
  715. # error "__cpp_lib_atomic_is_always_lock_free should have the value 201603L in c++17"
  716. # endif
  717. # else
  718. # ifdef __cpp_lib_atomic_is_always_lock_free
  719. # error "__cpp_lib_atomic_is_always_lock_free should not be defined when !defined(_LIBCPP_HAS_NO_THREADS) is not defined!"
  720. # endif
  721. # endif
  722. # ifdef __cpp_lib_atomic_ref
  723. # error "__cpp_lib_atomic_ref should not be defined before c++2a"
  724. # endif
  725. # ifdef __cpp_lib_bind_front
  726. # error "__cpp_lib_bind_front should not be defined before c++2a"
  727. # endif
  728. # ifdef __cpp_lib_bit_cast
  729. # error "__cpp_lib_bit_cast should not be defined before c++2a"
  730. # endif
  731. # ifndef __cpp_lib_bool_constant
  732. # error "__cpp_lib_bool_constant should be defined in c++17"
  733. # endif
  734. # if __cpp_lib_bool_constant != 201505L
  735. # error "__cpp_lib_bool_constant should have the value 201505L in c++17"
  736. # endif
  737. # if !defined(_LIBCPP_VERSION)
  738. # ifndef __cpp_lib_boyer_moore_searcher
  739. # error "__cpp_lib_boyer_moore_searcher should be defined in c++17"
  740. # endif
  741. # if __cpp_lib_boyer_moore_searcher != 201603L
  742. # error "__cpp_lib_boyer_moore_searcher should have the value 201603L in c++17"
  743. # endif
  744. # else // _LIBCPP_VERSION
  745. # ifdef __cpp_lib_boyer_moore_searcher
  746. # error "__cpp_lib_boyer_moore_searcher should not be defined because it is unimplemented in libc++!"
  747. # endif
  748. # endif
  749. # ifndef __cpp_lib_byte
  750. # error "__cpp_lib_byte should be defined in c++17"
  751. # endif
  752. # if __cpp_lib_byte != 201603L
  753. # error "__cpp_lib_byte should have the value 201603L in c++17"
  754. # endif
  755. # ifdef __cpp_lib_char8_t
  756. # error "__cpp_lib_char8_t should not be defined before c++2a"
  757. # endif
  758. # ifndef __cpp_lib_chrono
  759. # error "__cpp_lib_chrono should be defined in c++17"
  760. # endif
  761. # if __cpp_lib_chrono != 201611L
  762. # error "__cpp_lib_chrono should have the value 201611L in c++17"
  763. # endif
  764. # ifndef __cpp_lib_chrono_udls
  765. # error "__cpp_lib_chrono_udls should be defined in c++17"
  766. # endif
  767. # if __cpp_lib_chrono_udls != 201304L
  768. # error "__cpp_lib_chrono_udls should have the value 201304L in c++17"
  769. # endif
  770. # ifndef __cpp_lib_clamp
  771. # error "__cpp_lib_clamp should be defined in c++17"
  772. # endif
  773. # if __cpp_lib_clamp != 201603L
  774. # error "__cpp_lib_clamp should have the value 201603L in c++17"
  775. # endif
  776. # ifndef __cpp_lib_complex_udls
  777. # error "__cpp_lib_complex_udls should be defined in c++17"
  778. # endif
  779. # if __cpp_lib_complex_udls != 201309L
  780. # error "__cpp_lib_complex_udls should have the value 201309L in c++17"
  781. # endif
  782. # ifdef __cpp_lib_concepts
  783. # error "__cpp_lib_concepts should not be defined before c++2a"
  784. # endif
  785. # ifdef __cpp_lib_constexpr_misc
  786. # error "__cpp_lib_constexpr_misc should not be defined before c++2a"
  787. # endif
  788. # ifdef __cpp_lib_constexpr_swap_algorithms
  789. # error "__cpp_lib_constexpr_swap_algorithms should not be defined before c++2a"
  790. # endif
  791. # ifdef __cpp_lib_destroying_delete
  792. # error "__cpp_lib_destroying_delete should not be defined before c++2a"
  793. # endif
  794. # ifndef __cpp_lib_enable_shared_from_this
  795. # error "__cpp_lib_enable_shared_from_this should be defined in c++17"
  796. # endif
  797. # if __cpp_lib_enable_shared_from_this != 201603L
  798. # error "__cpp_lib_enable_shared_from_this should have the value 201603L in c++17"
  799. # endif
  800. # ifdef __cpp_lib_erase_if
  801. # error "__cpp_lib_erase_if should not be defined before c++2a"
  802. # endif
  803. # ifndef __cpp_lib_exchange_function
  804. # error "__cpp_lib_exchange_function should be defined in c++17"
  805. # endif
  806. # if __cpp_lib_exchange_function != 201304L
  807. # error "__cpp_lib_exchange_function should have the value 201304L in c++17"
  808. # endif
  809. # if !defined(_LIBCPP_VERSION)
  810. # ifndef __cpp_lib_execution
  811. # error "__cpp_lib_execution should be defined in c++17"
  812. # endif
  813. # if __cpp_lib_execution != 201603L
  814. # error "__cpp_lib_execution should have the value 201603L in c++17"
  815. # endif
  816. # else // _LIBCPP_VERSION
  817. # ifdef __cpp_lib_execution
  818. # error "__cpp_lib_execution should not be defined because it is unimplemented in libc++!"
  819. # endif
  820. # endif
  821. # ifndef __cpp_lib_filesystem
  822. # error "__cpp_lib_filesystem should be defined in c++17"
  823. # endif
  824. # if __cpp_lib_filesystem != 201703L
  825. # error "__cpp_lib_filesystem should have the value 201703L in c++17"
  826. # endif
  827. # ifndef __cpp_lib_gcd_lcm
  828. # error "__cpp_lib_gcd_lcm should be defined in c++17"
  829. # endif
  830. # if __cpp_lib_gcd_lcm != 201606L
  831. # error "__cpp_lib_gcd_lcm should have the value 201606L in c++17"
  832. # endif
  833. # ifndef __cpp_lib_generic_associative_lookup
  834. # error "__cpp_lib_generic_associative_lookup should be defined in c++17"
  835. # endif
  836. # if __cpp_lib_generic_associative_lookup != 201304L
  837. # error "__cpp_lib_generic_associative_lookup should have the value 201304L in c++17"
  838. # endif
  839. # ifdef __cpp_lib_generic_unordered_lookup
  840. # error "__cpp_lib_generic_unordered_lookup should not be defined before c++2a"
  841. # endif
  842. # ifndef __cpp_lib_hardware_interference_size
  843. # error "__cpp_lib_hardware_interference_size should be defined in c++17"
  844. # endif
  845. # if __cpp_lib_hardware_interference_size != 201703L
  846. # error "__cpp_lib_hardware_interference_size should have the value 201703L in c++17"
  847. # endif
  848. # if TEST_HAS_BUILTIN_IDENTIFIER(__has_unique_object_representations) || TEST_GCC_VER >= 700
  849. # ifndef __cpp_lib_has_unique_object_representations
  850. # error "__cpp_lib_has_unique_object_representations should be defined in c++17"
  851. # endif
  852. # if __cpp_lib_has_unique_object_representations != 201606L
  853. # error "__cpp_lib_has_unique_object_representations should have the value 201606L in c++17"
  854. # endif
  855. # else
  856. # ifdef __cpp_lib_has_unique_object_representations
  857. # error "__cpp_lib_has_unique_object_representations should not be defined when TEST_HAS_BUILTIN_IDENTIFIER(__has_unique_object_representations) || TEST_GCC_VER >= 700 is not defined!"
  858. # endif
  859. # endif
  860. # ifndef __cpp_lib_hypot
  861. # error "__cpp_lib_hypot should be defined in c++17"
  862. # endif
  863. # if __cpp_lib_hypot != 201603L
  864. # error "__cpp_lib_hypot should have the value 201603L in c++17"
  865. # endif
  866. # ifndef __cpp_lib_incomplete_container_elements
  867. # error "__cpp_lib_incomplete_container_elements should be defined in c++17"
  868. # endif
  869. # if __cpp_lib_incomplete_container_elements != 201505L
  870. # error "__cpp_lib_incomplete_container_elements should have the value 201505L in c++17"
  871. # endif
  872. # ifndef __cpp_lib_integer_sequence
  873. # error "__cpp_lib_integer_sequence should be defined in c++17"
  874. # endif
  875. # if __cpp_lib_integer_sequence != 201304L
  876. # error "__cpp_lib_integer_sequence should have the value 201304L in c++17"
  877. # endif
  878. # ifndef __cpp_lib_integral_constant_callable
  879. # error "__cpp_lib_integral_constant_callable should be defined in c++17"
  880. # endif
  881. # if __cpp_lib_integral_constant_callable != 201304L
  882. # error "__cpp_lib_integral_constant_callable should have the value 201304L in c++17"
  883. # endif
  884. # ifdef __cpp_lib_interpolate
  885. # error "__cpp_lib_interpolate should not be defined before c++2a"
  886. # endif
  887. # ifndef __cpp_lib_invoke
  888. # error "__cpp_lib_invoke should be defined in c++17"
  889. # endif
  890. # if __cpp_lib_invoke != 201411L
  891. # error "__cpp_lib_invoke should have the value 201411L in c++17"
  892. # endif
  893. # if TEST_HAS_BUILTIN_IDENTIFIER(__is_aggregate) || TEST_GCC_VER_NEW >= 7001
  894. # ifndef __cpp_lib_is_aggregate
  895. # error "__cpp_lib_is_aggregate should be defined in c++17"
  896. # endif
  897. # if __cpp_lib_is_aggregate != 201703L
  898. # error "__cpp_lib_is_aggregate should have the value 201703L in c++17"
  899. # endif
  900. # else
  901. # ifdef __cpp_lib_is_aggregate
  902. # error "__cpp_lib_is_aggregate should not be defined when TEST_HAS_BUILTIN_IDENTIFIER(__is_aggregate) || TEST_GCC_VER_NEW >= 7001 is not defined!"
  903. # endif
  904. # endif
  905. # ifdef __cpp_lib_is_constant_evaluated
  906. # error "__cpp_lib_is_constant_evaluated should not be defined before c++2a"
  907. # endif
  908. # ifndef __cpp_lib_is_final
  909. # error "__cpp_lib_is_final should be defined in c++17"
  910. # endif
  911. # if __cpp_lib_is_final != 201402L
  912. # error "__cpp_lib_is_final should have the value 201402L in c++17"
  913. # endif
  914. # ifndef __cpp_lib_is_invocable
  915. # error "__cpp_lib_is_invocable should be defined in c++17"
  916. # endif
  917. # if __cpp_lib_is_invocable != 201703L
  918. # error "__cpp_lib_is_invocable should have the value 201703L in c++17"
  919. # endif
  920. # ifndef __cpp_lib_is_null_pointer
  921. # error "__cpp_lib_is_null_pointer should be defined in c++17"
  922. # endif
  923. # if __cpp_lib_is_null_pointer != 201309L
  924. # error "__cpp_lib_is_null_pointer should have the value 201309L in c++17"
  925. # endif
  926. # ifndef __cpp_lib_is_swappable
  927. # error "__cpp_lib_is_swappable should be defined in c++17"
  928. # endif
  929. # if __cpp_lib_is_swappable != 201603L
  930. # error "__cpp_lib_is_swappable should have the value 201603L in c++17"
  931. # endif
  932. # ifndef __cpp_lib_launder
  933. # error "__cpp_lib_launder should be defined in c++17"
  934. # endif
  935. # if __cpp_lib_launder != 201606L
  936. # error "__cpp_lib_launder should have the value 201606L in c++17"
  937. # endif
  938. # ifdef __cpp_lib_list_remove_return_type
  939. # error "__cpp_lib_list_remove_return_type should not be defined before c++2a"
  940. # endif
  941. # ifndef __cpp_lib_logical_traits
  942. # error "__cpp_lib_logical_traits should be defined in c++17"
  943. # endif
  944. # if __cpp_lib_logical_traits != 201510L
  945. # error "__cpp_lib_logical_traits should have the value 201510L in c++17"
  946. # endif
  947. # ifndef __cpp_lib_make_from_tuple
  948. # error "__cpp_lib_make_from_tuple should be defined in c++17"
  949. # endif
  950. # if __cpp_lib_make_from_tuple != 201606L
  951. # error "__cpp_lib_make_from_tuple should have the value 201606L in c++17"
  952. # endif
  953. # ifndef __cpp_lib_make_reverse_iterator
  954. # error "__cpp_lib_make_reverse_iterator should be defined in c++17"
  955. # endif
  956. # if __cpp_lib_make_reverse_iterator != 201402L
  957. # error "__cpp_lib_make_reverse_iterator should have the value 201402L in c++17"
  958. # endif
  959. # ifndef __cpp_lib_make_unique
  960. # error "__cpp_lib_make_unique should be defined in c++17"
  961. # endif
  962. # if __cpp_lib_make_unique != 201304L
  963. # error "__cpp_lib_make_unique should have the value 201304L in c++17"
  964. # endif
  965. # ifndef __cpp_lib_map_try_emplace
  966. # error "__cpp_lib_map_try_emplace should be defined in c++17"
  967. # endif
  968. # if __cpp_lib_map_try_emplace != 201411L
  969. # error "__cpp_lib_map_try_emplace should have the value 201411L in c++17"
  970. # endif
  971. # if !defined(_LIBCPP_VERSION)
  972. # ifndef __cpp_lib_math_special_functions
  973. # error "__cpp_lib_math_special_functions should be defined in c++17"
  974. # endif
  975. # if __cpp_lib_math_special_functions != 201603L
  976. # error "__cpp_lib_math_special_functions should have the value 201603L in c++17"
  977. # endif
  978. # else // _LIBCPP_VERSION
  979. # ifdef __cpp_lib_math_special_functions
  980. # error "__cpp_lib_math_special_functions should not be defined because it is unimplemented in libc++!"
  981. # endif
  982. # endif
  983. # if !defined(_LIBCPP_VERSION)
  984. # ifndef __cpp_lib_memory_resource
  985. # error "__cpp_lib_memory_resource should be defined in c++17"
  986. # endif
  987. # if __cpp_lib_memory_resource != 201603L
  988. # error "__cpp_lib_memory_resource should have the value 201603L in c++17"
  989. # endif
  990. # else // _LIBCPP_VERSION
  991. # ifdef __cpp_lib_memory_resource
  992. # error "__cpp_lib_memory_resource should not be defined because it is unimplemented in libc++!"
  993. # endif
  994. # endif
  995. # ifndef __cpp_lib_node_extract
  996. # error "__cpp_lib_node_extract should be defined in c++17"
  997. # endif
  998. # if __cpp_lib_node_extract != 201606L
  999. # error "__cpp_lib_node_extract should have the value 201606L in c++17"
  1000. # endif
  1001. # ifndef __cpp_lib_nonmember_container_access
  1002. # error "__cpp_lib_nonmember_container_access should be defined in c++17"
  1003. # endif
  1004. # if __cpp_lib_nonmember_container_access != 201411L
  1005. # error "__cpp_lib_nonmember_container_access should have the value 201411L in c++17"
  1006. # endif
  1007. # ifndef __cpp_lib_not_fn
  1008. # error "__cpp_lib_not_fn should be defined in c++17"
  1009. # endif
  1010. # if __cpp_lib_not_fn != 201603L
  1011. # error "__cpp_lib_not_fn should have the value 201603L in c++17"
  1012. # endif
  1013. # ifndef __cpp_lib_null_iterators
  1014. # error "__cpp_lib_null_iterators should be defined in c++17"
  1015. # endif
  1016. # if __cpp_lib_null_iterators != 201304L
  1017. # error "__cpp_lib_null_iterators should have the value 201304L in c++17"
  1018. # endif
  1019. # ifndef __cpp_lib_optional
  1020. # error "__cpp_lib_optional should be defined in c++17"
  1021. # endif
  1022. # if __cpp_lib_optional != 201606L
  1023. # error "__cpp_lib_optional should have the value 201606L in c++17"
  1024. # endif
  1025. # if !defined(_LIBCPP_VERSION)
  1026. # ifndef __cpp_lib_parallel_algorithm
  1027. # error "__cpp_lib_parallel_algorithm should be defined in c++17"
  1028. # endif
  1029. # if __cpp_lib_parallel_algorithm != 201603L
  1030. # error "__cpp_lib_parallel_algorithm should have the value 201603L in c++17"
  1031. # endif
  1032. # else // _LIBCPP_VERSION
  1033. # ifdef __cpp_lib_parallel_algorithm
  1034. # error "__cpp_lib_parallel_algorithm should not be defined because it is unimplemented in libc++!"
  1035. # endif
  1036. # endif
  1037. # ifndef __cpp_lib_quoted_string_io
  1038. # error "__cpp_lib_quoted_string_io should be defined in c++17"
  1039. # endif
  1040. # if __cpp_lib_quoted_string_io != 201304L
  1041. # error "__cpp_lib_quoted_string_io should have the value 201304L in c++17"
  1042. # endif
  1043. # ifdef __cpp_lib_ranges
  1044. # error "__cpp_lib_ranges should not be defined before c++2a"
  1045. # endif
  1046. # ifndef __cpp_lib_raw_memory_algorithms
  1047. # error "__cpp_lib_raw_memory_algorithms should be defined in c++17"
  1048. # endif
  1049. # if __cpp_lib_raw_memory_algorithms != 201606L
  1050. # error "__cpp_lib_raw_memory_algorithms should have the value 201606L in c++17"
  1051. # endif
  1052. # ifndef __cpp_lib_result_of_sfinae
  1053. # error "__cpp_lib_result_of_sfinae should be defined in c++17"
  1054. # endif
  1055. # if __cpp_lib_result_of_sfinae != 201210L
  1056. # error "__cpp_lib_result_of_sfinae should have the value 201210L in c++17"
  1057. # endif
  1058. # ifndef __cpp_lib_robust_nonmodifying_seq_ops
  1059. # error "__cpp_lib_robust_nonmodifying_seq_ops should be defined in c++17"
  1060. # endif
  1061. # if __cpp_lib_robust_nonmodifying_seq_ops != 201304L
  1062. # error "__cpp_lib_robust_nonmodifying_seq_ops should have the value 201304L in c++17"
  1063. # endif
  1064. # ifndef __cpp_lib_sample
  1065. # error "__cpp_lib_sample should be defined in c++17"
  1066. # endif
  1067. # if __cpp_lib_sample != 201603L
  1068. # error "__cpp_lib_sample should have the value 201603L in c++17"
  1069. # endif
  1070. # ifndef __cpp_lib_scoped_lock
  1071. # error "__cpp_lib_scoped_lock should be defined in c++17"
  1072. # endif
  1073. # if __cpp_lib_scoped_lock != 201703L
  1074. # error "__cpp_lib_scoped_lock should have the value 201703L in c++17"
  1075. # endif
  1076. # if !defined(_LIBCPP_HAS_NO_THREADS)
  1077. # ifndef __cpp_lib_shared_mutex
  1078. # error "__cpp_lib_shared_mutex should be defined in c++17"
  1079. # endif
  1080. # if __cpp_lib_shared_mutex != 201505L
  1081. # error "__cpp_lib_shared_mutex should have the value 201505L in c++17"
  1082. # endif
  1083. # else
  1084. # ifdef __cpp_lib_shared_mutex
  1085. # error "__cpp_lib_shared_mutex should not be defined when !defined(_LIBCPP_HAS_NO_THREADS) is not defined!"
  1086. # endif
  1087. # endif
  1088. # if !defined(_LIBCPP_VERSION)
  1089. # ifndef __cpp_lib_shared_ptr_arrays
  1090. # error "__cpp_lib_shared_ptr_arrays should be defined in c++17"
  1091. # endif
  1092. # if __cpp_lib_shared_ptr_arrays != 201611L
  1093. # error "__cpp_lib_shared_ptr_arrays should have the value 201611L in c++17"
  1094. # endif
  1095. # else // _LIBCPP_VERSION
  1096. # ifdef __cpp_lib_shared_ptr_arrays
  1097. # error "__cpp_lib_shared_ptr_arrays should not be defined because it is unimplemented in libc++!"
  1098. # endif
  1099. # endif
  1100. # ifndef __cpp_lib_shared_ptr_weak_type
  1101. # error "__cpp_lib_shared_ptr_weak_type should be defined in c++17"
  1102. # endif
  1103. # if __cpp_lib_shared_ptr_weak_type != 201606L
  1104. # error "__cpp_lib_shared_ptr_weak_type should have the value 201606L in c++17"
  1105. # endif
  1106. # if !defined(_LIBCPP_HAS_NO_THREADS)
  1107. # ifndef __cpp_lib_shared_timed_mutex
  1108. # error "__cpp_lib_shared_timed_mutex should be defined in c++17"
  1109. # endif
  1110. # if __cpp_lib_shared_timed_mutex != 201402L
  1111. # error "__cpp_lib_shared_timed_mutex should have the value 201402L in c++17"
  1112. # endif
  1113. # else
  1114. # ifdef __cpp_lib_shared_timed_mutex
  1115. # error "__cpp_lib_shared_timed_mutex should not be defined when !defined(_LIBCPP_HAS_NO_THREADS) is not defined!"
  1116. # endif
  1117. # endif
  1118. # ifndef __cpp_lib_string_udls
  1119. # error "__cpp_lib_string_udls should be defined in c++17"
  1120. # endif
  1121. # if __cpp_lib_string_udls != 201304L
  1122. # error "__cpp_lib_string_udls should have the value 201304L in c++17"
  1123. # endif
  1124. # ifndef __cpp_lib_string_view
  1125. # error "__cpp_lib_string_view should be defined in c++17"
  1126. # endif
  1127. # if __cpp_lib_string_view != 201606L
  1128. # error "__cpp_lib_string_view should have the value 201606L in c++17"
  1129. # endif
  1130. # ifdef __cpp_lib_three_way_comparison
  1131. # error "__cpp_lib_three_way_comparison should not be defined before c++2a"
  1132. # endif
  1133. # if !defined(_LIBCPP_VERSION)
  1134. # ifndef __cpp_lib_to_chars
  1135. # error "__cpp_lib_to_chars should be defined in c++17"
  1136. # endif
  1137. # if __cpp_lib_to_chars != 201611L
  1138. # error "__cpp_lib_to_chars should have the value 201611L in c++17"
  1139. # endif
  1140. # else // _LIBCPP_VERSION
  1141. # ifdef __cpp_lib_to_chars
  1142. # error "__cpp_lib_to_chars should not be defined because it is unimplemented in libc++!"
  1143. # endif
  1144. # endif
  1145. # ifndef __cpp_lib_transformation_trait_aliases
  1146. # error "__cpp_lib_transformation_trait_aliases should be defined in c++17"
  1147. # endif
  1148. # if __cpp_lib_transformation_trait_aliases != 201304L
  1149. # error "__cpp_lib_transformation_trait_aliases should have the value 201304L in c++17"
  1150. # endif
  1151. # ifndef __cpp_lib_transparent_operators
  1152. # error "__cpp_lib_transparent_operators should be defined in c++17"
  1153. # endif
  1154. # if __cpp_lib_transparent_operators != 201510L
  1155. # error "__cpp_lib_transparent_operators should have the value 201510L in c++17"
  1156. # endif
  1157. # ifndef __cpp_lib_tuple_element_t
  1158. # error "__cpp_lib_tuple_element_t should be defined in c++17"
  1159. # endif
  1160. # if __cpp_lib_tuple_element_t != 201402L
  1161. # error "__cpp_lib_tuple_element_t should have the value 201402L in c++17"
  1162. # endif
  1163. # ifndef __cpp_lib_tuples_by_type
  1164. # error "__cpp_lib_tuples_by_type should be defined in c++17"
  1165. # endif
  1166. # if __cpp_lib_tuples_by_type != 201304L
  1167. # error "__cpp_lib_tuples_by_type should have the value 201304L in c++17"
  1168. # endif
  1169. # ifndef __cpp_lib_type_trait_variable_templates
  1170. # error "__cpp_lib_type_trait_variable_templates should be defined in c++17"
  1171. # endif
  1172. # if __cpp_lib_type_trait_variable_templates != 201510L
  1173. # error "__cpp_lib_type_trait_variable_templates should have the value 201510L in c++17"
  1174. # endif
  1175. # ifndef __cpp_lib_uncaught_exceptions
  1176. # error "__cpp_lib_uncaught_exceptions should be defined in c++17"
  1177. # endif
  1178. # if __cpp_lib_uncaught_exceptions != 201411L
  1179. # error "__cpp_lib_uncaught_exceptions should have the value 201411L in c++17"
  1180. # endif
  1181. # ifndef __cpp_lib_unordered_map_try_emplace
  1182. # error "__cpp_lib_unordered_map_try_emplace should be defined in c++17"
  1183. # endif
  1184. # if __cpp_lib_unordered_map_try_emplace != 201411L
  1185. # error "__cpp_lib_unordered_map_try_emplace should have the value 201411L in c++17"
  1186. # endif
  1187. # ifndef __cpp_lib_variant
  1188. # error "__cpp_lib_variant should be defined in c++17"
  1189. # endif
  1190. # if __cpp_lib_variant != 201606L
  1191. # error "__cpp_lib_variant should have the value 201606L in c++17"
  1192. # endif
  1193. # ifndef __cpp_lib_void_t
  1194. # error "__cpp_lib_void_t should be defined in c++17"
  1195. # endif
  1196. # if __cpp_lib_void_t != 201411L
  1197. # error "__cpp_lib_void_t should have the value 201411L in c++17"
  1198. # endif
  1199. #elif TEST_STD_VER > 17
  1200. # if TEST_HAS_BUILTIN(__builtin_addressof) || TEST_GCC_VER >= 700
  1201. # ifndef __cpp_lib_addressof_constexpr
  1202. # error "__cpp_lib_addressof_constexpr should be defined in c++2a"
  1203. # endif
  1204. # if __cpp_lib_addressof_constexpr != 201603L
  1205. # error "__cpp_lib_addressof_constexpr should have the value 201603L in c++2a"
  1206. # endif
  1207. # else
  1208. # ifdef __cpp_lib_addressof_constexpr
  1209. # error "__cpp_lib_addressof_constexpr should not be defined when TEST_HAS_BUILTIN(__builtin_addressof) || TEST_GCC_VER >= 700 is not defined!"
  1210. # endif
  1211. # endif
  1212. # ifndef __cpp_lib_allocator_traits_is_always_equal
  1213. # error "__cpp_lib_allocator_traits_is_always_equal should be defined in c++2a"
  1214. # endif
  1215. # if __cpp_lib_allocator_traits_is_always_equal != 201411L
  1216. # error "__cpp_lib_allocator_traits_is_always_equal should have the value 201411L in c++2a"
  1217. # endif
  1218. # ifndef __cpp_lib_any
  1219. # error "__cpp_lib_any should be defined in c++2a"
  1220. # endif
  1221. # if __cpp_lib_any != 201606L
  1222. # error "__cpp_lib_any should have the value 201606L in c++2a"
  1223. # endif
  1224. # ifndef __cpp_lib_apply
  1225. # error "__cpp_lib_apply should be defined in c++2a"
  1226. # endif
  1227. # if __cpp_lib_apply != 201603L
  1228. # error "__cpp_lib_apply should have the value 201603L in c++2a"
  1229. # endif
  1230. # ifndef __cpp_lib_array_constexpr
  1231. # error "__cpp_lib_array_constexpr should be defined in c++2a"
  1232. # endif
  1233. # if __cpp_lib_array_constexpr != 201603L
  1234. # error "__cpp_lib_array_constexpr should have the value 201603L in c++2a"
  1235. # endif
  1236. # ifndef __cpp_lib_as_const
  1237. # error "__cpp_lib_as_const should be defined in c++2a"
  1238. # endif
  1239. # if __cpp_lib_as_const != 201510L
  1240. # error "__cpp_lib_as_const should have the value 201510L in c++2a"
  1241. # endif
  1242. # if !defined(_LIBCPP_HAS_NO_THREADS)
  1243. # ifndef __cpp_lib_atomic_is_always_lock_free
  1244. # error "__cpp_lib_atomic_is_always_lock_free should be defined in c++2a"
  1245. # endif
  1246. # if __cpp_lib_atomic_is_always_lock_free != 201603L
  1247. # error "__cpp_lib_atomic_is_always_lock_free should have the value 201603L in c++2a"
  1248. # endif
  1249. # else
  1250. # ifdef __cpp_lib_atomic_is_always_lock_free
  1251. # error "__cpp_lib_atomic_is_always_lock_free should not be defined when !defined(_LIBCPP_HAS_NO_THREADS) is not defined!"
  1252. # endif
  1253. # endif
  1254. # if !defined(_LIBCPP_VERSION)
  1255. # ifndef __cpp_lib_atomic_ref
  1256. # error "__cpp_lib_atomic_ref should be defined in c++2a"
  1257. # endif
  1258. # if __cpp_lib_atomic_ref != 201806L
  1259. # error "__cpp_lib_atomic_ref should have the value 201806L in c++2a"
  1260. # endif
  1261. # else // _LIBCPP_VERSION
  1262. # ifdef __cpp_lib_atomic_ref
  1263. # error "__cpp_lib_atomic_ref should not be defined because it is unimplemented in libc++!"
  1264. # endif
  1265. # endif
  1266. # if !defined(_LIBCPP_VERSION)
  1267. # ifndef __cpp_lib_bind_front
  1268. # error "__cpp_lib_bind_front should be defined in c++2a"
  1269. # endif
  1270. # if __cpp_lib_bind_front != 201811L
  1271. # error "__cpp_lib_bind_front should have the value 201811L in c++2a"
  1272. # endif
  1273. # else // _LIBCPP_VERSION
  1274. # ifdef __cpp_lib_bind_front
  1275. # error "__cpp_lib_bind_front should not be defined because it is unimplemented in libc++!"
  1276. # endif
  1277. # endif
  1278. # if !defined(_LIBCPP_VERSION)
  1279. # ifndef __cpp_lib_bit_cast
  1280. # error "__cpp_lib_bit_cast should be defined in c++2a"
  1281. # endif
  1282. # if __cpp_lib_bit_cast != 201806L
  1283. # error "__cpp_lib_bit_cast should have the value 201806L in c++2a"
  1284. # endif
  1285. # else // _LIBCPP_VERSION
  1286. # ifdef __cpp_lib_bit_cast
  1287. # error "__cpp_lib_bit_cast should not be defined because it is unimplemented in libc++!"
  1288. # endif
  1289. # endif
  1290. # ifndef __cpp_lib_bool_constant
  1291. # error "__cpp_lib_bool_constant should be defined in c++2a"
  1292. # endif
  1293. # if __cpp_lib_bool_constant != 201505L
  1294. # error "__cpp_lib_bool_constant should have the value 201505L in c++2a"
  1295. # endif
  1296. # if !defined(_LIBCPP_VERSION)
  1297. # ifndef __cpp_lib_boyer_moore_searcher
  1298. # error "__cpp_lib_boyer_moore_searcher should be defined in c++2a"
  1299. # endif
  1300. # if __cpp_lib_boyer_moore_searcher != 201603L
  1301. # error "__cpp_lib_boyer_moore_searcher should have the value 201603L in c++2a"
  1302. # endif
  1303. # else // _LIBCPP_VERSION
  1304. # ifdef __cpp_lib_boyer_moore_searcher
  1305. # error "__cpp_lib_boyer_moore_searcher should not be defined because it is unimplemented in libc++!"
  1306. # endif
  1307. # endif
  1308. # ifndef __cpp_lib_byte
  1309. # error "__cpp_lib_byte should be defined in c++2a"
  1310. # endif
  1311. # if __cpp_lib_byte != 201603L
  1312. # error "__cpp_lib_byte should have the value 201603L in c++2a"
  1313. # endif
  1314. # if defined(__cpp_char8_t)
  1315. # ifndef __cpp_lib_char8_t
  1316. # error "__cpp_lib_char8_t should be defined in c++2a"
  1317. # endif
  1318. # if __cpp_lib_char8_t != 201811L
  1319. # error "__cpp_lib_char8_t should have the value 201811L in c++2a"
  1320. # endif
  1321. # else
  1322. # ifdef __cpp_lib_char8_t
  1323. # error "__cpp_lib_char8_t should not be defined when defined(__cpp_char8_t) is not defined!"
  1324. # endif
  1325. # endif
  1326. # ifndef __cpp_lib_chrono
  1327. # error "__cpp_lib_chrono should be defined in c++2a"
  1328. # endif
  1329. # if __cpp_lib_chrono != 201611L
  1330. # error "__cpp_lib_chrono should have the value 201611L in c++2a"
  1331. # endif
  1332. # ifndef __cpp_lib_chrono_udls
  1333. # error "__cpp_lib_chrono_udls should be defined in c++2a"
  1334. # endif
  1335. # if __cpp_lib_chrono_udls != 201304L
  1336. # error "__cpp_lib_chrono_udls should have the value 201304L in c++2a"
  1337. # endif
  1338. # ifndef __cpp_lib_clamp
  1339. # error "__cpp_lib_clamp should be defined in c++2a"
  1340. # endif
  1341. # if __cpp_lib_clamp != 201603L
  1342. # error "__cpp_lib_clamp should have the value 201603L in c++2a"
  1343. # endif
  1344. # ifndef __cpp_lib_complex_udls
  1345. # error "__cpp_lib_complex_udls should be defined in c++2a"
  1346. # endif
  1347. # if __cpp_lib_complex_udls != 201309L
  1348. # error "__cpp_lib_complex_udls should have the value 201309L in c++2a"
  1349. # endif
  1350. # if !defined(_LIBCPP_VERSION)
  1351. # ifndef __cpp_lib_concepts
  1352. # error "__cpp_lib_concepts should be defined in c++2a"
  1353. # endif
  1354. # if __cpp_lib_concepts != 201806L
  1355. # error "__cpp_lib_concepts should have the value 201806L in c++2a"
  1356. # endif
  1357. # else // _LIBCPP_VERSION
  1358. # ifdef __cpp_lib_concepts
  1359. # error "__cpp_lib_concepts should not be defined because it is unimplemented in libc++!"
  1360. # endif
  1361. # endif
  1362. # if !defined(_LIBCPP_VERSION)
  1363. # ifndef __cpp_lib_constexpr_misc
  1364. # error "__cpp_lib_constexpr_misc should be defined in c++2a"
  1365. # endif
  1366. # if __cpp_lib_constexpr_misc != 201811L
  1367. # error "__cpp_lib_constexpr_misc should have the value 201811L in c++2a"
  1368. # endif
  1369. # else // _LIBCPP_VERSION
  1370. # ifdef __cpp_lib_constexpr_misc
  1371. # error "__cpp_lib_constexpr_misc should not be defined because it is unimplemented in libc++!"
  1372. # endif
  1373. # endif
  1374. # if !defined(_LIBCPP_VERSION)
  1375. # ifndef __cpp_lib_constexpr_swap_algorithms
  1376. # error "__cpp_lib_constexpr_swap_algorithms should be defined in c++2a"
  1377. # endif
  1378. # if __cpp_lib_constexpr_swap_algorithms != 201806L
  1379. # error "__cpp_lib_constexpr_swap_algorithms should have the value 201806L in c++2a"
  1380. # endif
  1381. # else // _LIBCPP_VERSION
  1382. # ifdef __cpp_lib_constexpr_swap_algorithms
  1383. # error "__cpp_lib_constexpr_swap_algorithms should not be defined because it is unimplemented in libc++!"
  1384. # endif
  1385. # endif
  1386. # if TEST_STD_VER > 17 && defined(__cpp_impl_destroying_delete) && __cpp_impl_destroying_delete >= 201806L
  1387. # ifndef __cpp_lib_destroying_delete
  1388. # error "__cpp_lib_destroying_delete should be defined in c++2a"
  1389. # endif
  1390. # if __cpp_lib_destroying_delete != 201806L
  1391. # error "__cpp_lib_destroying_delete should have the value 201806L in c++2a"
  1392. # endif
  1393. # else
  1394. # ifdef __cpp_lib_destroying_delete
  1395. # error "__cpp_lib_destroying_delete should not be defined when TEST_STD_VER > 17 && defined(__cpp_impl_destroying_delete) && __cpp_impl_destroying_delete >= 201806L is not defined!"
  1396. # endif
  1397. # endif
  1398. # ifndef __cpp_lib_enable_shared_from_this
  1399. # error "__cpp_lib_enable_shared_from_this should be defined in c++2a"
  1400. # endif
  1401. # if __cpp_lib_enable_shared_from_this != 201603L
  1402. # error "__cpp_lib_enable_shared_from_this should have the value 201603L in c++2a"
  1403. # endif
  1404. # ifndef __cpp_lib_erase_if
  1405. # error "__cpp_lib_erase_if should be defined in c++2a"
  1406. # endif
  1407. # if __cpp_lib_erase_if != 201811L
  1408. # error "__cpp_lib_erase_if should have the value 201811L in c++2a"
  1409. # endif
  1410. # ifndef __cpp_lib_exchange_function
  1411. # error "__cpp_lib_exchange_function should be defined in c++2a"
  1412. # endif
  1413. # if __cpp_lib_exchange_function != 201304L
  1414. # error "__cpp_lib_exchange_function should have the value 201304L in c++2a"
  1415. # endif
  1416. # if !defined(_LIBCPP_VERSION)
  1417. # ifndef __cpp_lib_execution
  1418. # error "__cpp_lib_execution should be defined in c++2a"
  1419. # endif
  1420. # if __cpp_lib_execution != 201603L
  1421. # error "__cpp_lib_execution should have the value 201603L in c++2a"
  1422. # endif
  1423. # else // _LIBCPP_VERSION
  1424. # ifdef __cpp_lib_execution
  1425. # error "__cpp_lib_execution should not be defined because it is unimplemented in libc++!"
  1426. # endif
  1427. # endif
  1428. # ifndef __cpp_lib_filesystem
  1429. # error "__cpp_lib_filesystem should be defined in c++2a"
  1430. # endif
  1431. # if __cpp_lib_filesystem != 201703L
  1432. # error "__cpp_lib_filesystem should have the value 201703L in c++2a"
  1433. # endif
  1434. # ifndef __cpp_lib_gcd_lcm
  1435. # error "__cpp_lib_gcd_lcm should be defined in c++2a"
  1436. # endif
  1437. # if __cpp_lib_gcd_lcm != 201606L
  1438. # error "__cpp_lib_gcd_lcm should have the value 201606L in c++2a"
  1439. # endif
  1440. # ifndef __cpp_lib_generic_associative_lookup
  1441. # error "__cpp_lib_generic_associative_lookup should be defined in c++2a"
  1442. # endif
  1443. # if __cpp_lib_generic_associative_lookup != 201304L
  1444. # error "__cpp_lib_generic_associative_lookup should have the value 201304L in c++2a"
  1445. # endif
  1446. # if !defined(_LIBCPP_VERSION)
  1447. # ifndef __cpp_lib_generic_unordered_lookup
  1448. # error "__cpp_lib_generic_unordered_lookup should be defined in c++2a"
  1449. # endif
  1450. # if __cpp_lib_generic_unordered_lookup != 201811L
  1451. # error "__cpp_lib_generic_unordered_lookup should have the value 201811L in c++2a"
  1452. # endif
  1453. # else // _LIBCPP_VERSION
  1454. # ifdef __cpp_lib_generic_unordered_lookup
  1455. # error "__cpp_lib_generic_unordered_lookup should not be defined because it is unimplemented in libc++!"
  1456. # endif
  1457. # endif
  1458. # ifndef __cpp_lib_hardware_interference_size
  1459. # error "__cpp_lib_hardware_interference_size should be defined in c++2a"
  1460. # endif
  1461. # if __cpp_lib_hardware_interference_size != 201703L
  1462. # error "__cpp_lib_hardware_interference_size should have the value 201703L in c++2a"
  1463. # endif
  1464. # if TEST_HAS_BUILTIN_IDENTIFIER(__has_unique_object_representations) || TEST_GCC_VER >= 700
  1465. # ifndef __cpp_lib_has_unique_object_representations
  1466. # error "__cpp_lib_has_unique_object_representations should be defined in c++2a"
  1467. # endif
  1468. # if __cpp_lib_has_unique_object_representations != 201606L
  1469. # error "__cpp_lib_has_unique_object_representations should have the value 201606L in c++2a"
  1470. # endif
  1471. # else
  1472. # ifdef __cpp_lib_has_unique_object_representations
  1473. # error "__cpp_lib_has_unique_object_representations should not be defined when TEST_HAS_BUILTIN_IDENTIFIER(__has_unique_object_representations) || TEST_GCC_VER >= 700 is not defined!"
  1474. # endif
  1475. # endif
  1476. # ifndef __cpp_lib_hypot
  1477. # error "__cpp_lib_hypot should be defined in c++2a"
  1478. # endif
  1479. # if __cpp_lib_hypot != 201603L
  1480. # error "__cpp_lib_hypot should have the value 201603L in c++2a"
  1481. # endif
  1482. # ifndef __cpp_lib_incomplete_container_elements
  1483. # error "__cpp_lib_incomplete_container_elements should be defined in c++2a"
  1484. # endif
  1485. # if __cpp_lib_incomplete_container_elements != 201505L
  1486. # error "__cpp_lib_incomplete_container_elements should have the value 201505L in c++2a"
  1487. # endif
  1488. # ifndef __cpp_lib_integer_sequence
  1489. # error "__cpp_lib_integer_sequence should be defined in c++2a"
  1490. # endif
  1491. # if __cpp_lib_integer_sequence != 201304L
  1492. # error "__cpp_lib_integer_sequence should have the value 201304L in c++2a"
  1493. # endif
  1494. # ifndef __cpp_lib_integral_constant_callable
  1495. # error "__cpp_lib_integral_constant_callable should be defined in c++2a"
  1496. # endif
  1497. # if __cpp_lib_integral_constant_callable != 201304L
  1498. # error "__cpp_lib_integral_constant_callable should have the value 201304L in c++2a"
  1499. # endif
  1500. # ifndef __cpp_lib_interpolate
  1501. # error "__cpp_lib_interpolate should be defined in c++2a"
  1502. # endif
  1503. # if __cpp_lib_interpolate != 201902L
  1504. # error "__cpp_lib_interpolate should have the value 201902L in c++2a"
  1505. # endif
  1506. # ifndef __cpp_lib_invoke
  1507. # error "__cpp_lib_invoke should be defined in c++2a"
  1508. # endif
  1509. # if __cpp_lib_invoke != 201411L
  1510. # error "__cpp_lib_invoke should have the value 201411L in c++2a"
  1511. # endif
  1512. # if TEST_HAS_BUILTIN_IDENTIFIER(__is_aggregate) || TEST_GCC_VER_NEW >= 7001
  1513. # ifndef __cpp_lib_is_aggregate
  1514. # error "__cpp_lib_is_aggregate should be defined in c++2a"
  1515. # endif
  1516. # if __cpp_lib_is_aggregate != 201703L
  1517. # error "__cpp_lib_is_aggregate should have the value 201703L in c++2a"
  1518. # endif
  1519. # else
  1520. # ifdef __cpp_lib_is_aggregate
  1521. # error "__cpp_lib_is_aggregate should not be defined when TEST_HAS_BUILTIN_IDENTIFIER(__is_aggregate) || TEST_GCC_VER_NEW >= 7001 is not defined!"
  1522. # endif
  1523. # endif
  1524. # if TEST_HAS_BUILTIN(__builtin_is_constant_evaluated) || TEST_GCC_VER >= 900
  1525. # ifndef __cpp_lib_is_constant_evaluated
  1526. # error "__cpp_lib_is_constant_evaluated should be defined in c++2a"
  1527. # endif
  1528. # if __cpp_lib_is_constant_evaluated != 201811L
  1529. # error "__cpp_lib_is_constant_evaluated should have the value 201811L in c++2a"
  1530. # endif
  1531. # else
  1532. # ifdef __cpp_lib_is_constant_evaluated
  1533. # error "__cpp_lib_is_constant_evaluated should not be defined when TEST_HAS_BUILTIN(__builtin_is_constant_evaluated) || TEST_GCC_VER >= 900 is not defined!"
  1534. # endif
  1535. # endif
  1536. # ifndef __cpp_lib_is_final
  1537. # error "__cpp_lib_is_final should be defined in c++2a"
  1538. # endif
  1539. # if __cpp_lib_is_final != 201402L
  1540. # error "__cpp_lib_is_final should have the value 201402L in c++2a"
  1541. # endif
  1542. # ifndef __cpp_lib_is_invocable
  1543. # error "__cpp_lib_is_invocable should be defined in c++2a"
  1544. # endif
  1545. # if __cpp_lib_is_invocable != 201703L
  1546. # error "__cpp_lib_is_invocable should have the value 201703L in c++2a"
  1547. # endif
  1548. # ifndef __cpp_lib_is_null_pointer
  1549. # error "__cpp_lib_is_null_pointer should be defined in c++2a"
  1550. # endif
  1551. # if __cpp_lib_is_null_pointer != 201309L
  1552. # error "__cpp_lib_is_null_pointer should have the value 201309L in c++2a"
  1553. # endif
  1554. # ifndef __cpp_lib_is_swappable
  1555. # error "__cpp_lib_is_swappable should be defined in c++2a"
  1556. # endif
  1557. # if __cpp_lib_is_swappable != 201603L
  1558. # error "__cpp_lib_is_swappable should have the value 201603L in c++2a"
  1559. # endif
  1560. # ifndef __cpp_lib_launder
  1561. # error "__cpp_lib_launder should be defined in c++2a"
  1562. # endif
  1563. # if __cpp_lib_launder != 201606L
  1564. # error "__cpp_lib_launder should have the value 201606L in c++2a"
  1565. # endif
  1566. # if !defined(_LIBCPP_VERSION)
  1567. # ifndef __cpp_lib_list_remove_return_type
  1568. # error "__cpp_lib_list_remove_return_type should be defined in c++2a"
  1569. # endif
  1570. # if __cpp_lib_list_remove_return_type != 201806L
  1571. # error "__cpp_lib_list_remove_return_type should have the value 201806L in c++2a"
  1572. # endif
  1573. # else // _LIBCPP_VERSION
  1574. # ifdef __cpp_lib_list_remove_return_type
  1575. # error "__cpp_lib_list_remove_return_type should not be defined because it is unimplemented in libc++!"
  1576. # endif
  1577. # endif
  1578. # ifndef __cpp_lib_logical_traits
  1579. # error "__cpp_lib_logical_traits should be defined in c++2a"
  1580. # endif
  1581. # if __cpp_lib_logical_traits != 201510L
  1582. # error "__cpp_lib_logical_traits should have the value 201510L in c++2a"
  1583. # endif
  1584. # ifndef __cpp_lib_make_from_tuple
  1585. # error "__cpp_lib_make_from_tuple should be defined in c++2a"
  1586. # endif
  1587. # if __cpp_lib_make_from_tuple != 201606L
  1588. # error "__cpp_lib_make_from_tuple should have the value 201606L in c++2a"
  1589. # endif
  1590. # ifndef __cpp_lib_make_reverse_iterator
  1591. # error "__cpp_lib_make_reverse_iterator should be defined in c++2a"
  1592. # endif
  1593. # if __cpp_lib_make_reverse_iterator != 201402L
  1594. # error "__cpp_lib_make_reverse_iterator should have the value 201402L in c++2a"
  1595. # endif
  1596. # ifndef __cpp_lib_make_unique
  1597. # error "__cpp_lib_make_unique should be defined in c++2a"
  1598. # endif
  1599. # if __cpp_lib_make_unique != 201304L
  1600. # error "__cpp_lib_make_unique should have the value 201304L in c++2a"
  1601. # endif
  1602. # ifndef __cpp_lib_map_try_emplace
  1603. # error "__cpp_lib_map_try_emplace should be defined in c++2a"
  1604. # endif
  1605. # if __cpp_lib_map_try_emplace != 201411L
  1606. # error "__cpp_lib_map_try_emplace should have the value 201411L in c++2a"
  1607. # endif
  1608. # if !defined(_LIBCPP_VERSION)
  1609. # ifndef __cpp_lib_math_special_functions
  1610. # error "__cpp_lib_math_special_functions should be defined in c++2a"
  1611. # endif
  1612. # if __cpp_lib_math_special_functions != 201603L
  1613. # error "__cpp_lib_math_special_functions should have the value 201603L in c++2a"
  1614. # endif
  1615. # else // _LIBCPP_VERSION
  1616. # ifdef __cpp_lib_math_special_functions
  1617. # error "__cpp_lib_math_special_functions should not be defined because it is unimplemented in libc++!"
  1618. # endif
  1619. # endif
  1620. # if !defined(_LIBCPP_VERSION)
  1621. # ifndef __cpp_lib_memory_resource
  1622. # error "__cpp_lib_memory_resource should be defined in c++2a"
  1623. # endif
  1624. # if __cpp_lib_memory_resource != 201603L
  1625. # error "__cpp_lib_memory_resource should have the value 201603L in c++2a"
  1626. # endif
  1627. # else // _LIBCPP_VERSION
  1628. # ifdef __cpp_lib_memory_resource
  1629. # error "__cpp_lib_memory_resource should not be defined because it is unimplemented in libc++!"
  1630. # endif
  1631. # endif
  1632. # ifndef __cpp_lib_node_extract
  1633. # error "__cpp_lib_node_extract should be defined in c++2a"
  1634. # endif
  1635. # if __cpp_lib_node_extract != 201606L
  1636. # error "__cpp_lib_node_extract should have the value 201606L in c++2a"
  1637. # endif
  1638. # ifndef __cpp_lib_nonmember_container_access
  1639. # error "__cpp_lib_nonmember_container_access should be defined in c++2a"
  1640. # endif
  1641. # if __cpp_lib_nonmember_container_access != 201411L
  1642. # error "__cpp_lib_nonmember_container_access should have the value 201411L in c++2a"
  1643. # endif
  1644. # ifndef __cpp_lib_not_fn
  1645. # error "__cpp_lib_not_fn should be defined in c++2a"
  1646. # endif
  1647. # if __cpp_lib_not_fn != 201603L
  1648. # error "__cpp_lib_not_fn should have the value 201603L in c++2a"
  1649. # endif
  1650. # ifndef __cpp_lib_null_iterators
  1651. # error "__cpp_lib_null_iterators should be defined in c++2a"
  1652. # endif
  1653. # if __cpp_lib_null_iterators != 201304L
  1654. # error "__cpp_lib_null_iterators should have the value 201304L in c++2a"
  1655. # endif
  1656. # ifndef __cpp_lib_optional
  1657. # error "__cpp_lib_optional should be defined in c++2a"
  1658. # endif
  1659. # if __cpp_lib_optional != 201606L
  1660. # error "__cpp_lib_optional should have the value 201606L in c++2a"
  1661. # endif
  1662. # if !defined(_LIBCPP_VERSION)
  1663. # ifndef __cpp_lib_parallel_algorithm
  1664. # error "__cpp_lib_parallel_algorithm should be defined in c++2a"
  1665. # endif
  1666. # if __cpp_lib_parallel_algorithm != 201603L
  1667. # error "__cpp_lib_parallel_algorithm should have the value 201603L in c++2a"
  1668. # endif
  1669. # else // _LIBCPP_VERSION
  1670. # ifdef __cpp_lib_parallel_algorithm
  1671. # error "__cpp_lib_parallel_algorithm should not be defined because it is unimplemented in libc++!"
  1672. # endif
  1673. # endif
  1674. # ifndef __cpp_lib_quoted_string_io
  1675. # error "__cpp_lib_quoted_string_io should be defined in c++2a"
  1676. # endif
  1677. # if __cpp_lib_quoted_string_io != 201304L
  1678. # error "__cpp_lib_quoted_string_io should have the value 201304L in c++2a"
  1679. # endif
  1680. # if !defined(_LIBCPP_VERSION)
  1681. # ifndef __cpp_lib_ranges
  1682. # error "__cpp_lib_ranges should be defined in c++2a"
  1683. # endif
  1684. # if __cpp_lib_ranges != 201811L
  1685. # error "__cpp_lib_ranges should have the value 201811L in c++2a"
  1686. # endif
  1687. # else // _LIBCPP_VERSION
  1688. # ifdef __cpp_lib_ranges
  1689. # error "__cpp_lib_ranges should not be defined because it is unimplemented in libc++!"
  1690. # endif
  1691. # endif
  1692. # ifndef __cpp_lib_raw_memory_algorithms
  1693. # error "__cpp_lib_raw_memory_algorithms should be defined in c++2a"
  1694. # endif
  1695. # if __cpp_lib_raw_memory_algorithms != 201606L
  1696. # error "__cpp_lib_raw_memory_algorithms should have the value 201606L in c++2a"
  1697. # endif
  1698. # ifndef __cpp_lib_result_of_sfinae
  1699. # error "__cpp_lib_result_of_sfinae should be defined in c++2a"
  1700. # endif
  1701. # if __cpp_lib_result_of_sfinae != 201210L
  1702. # error "__cpp_lib_result_of_sfinae should have the value 201210L in c++2a"
  1703. # endif
  1704. # ifndef __cpp_lib_robust_nonmodifying_seq_ops
  1705. # error "__cpp_lib_robust_nonmodifying_seq_ops should be defined in c++2a"
  1706. # endif
  1707. # if __cpp_lib_robust_nonmodifying_seq_ops != 201304L
  1708. # error "__cpp_lib_robust_nonmodifying_seq_ops should have the value 201304L in c++2a"
  1709. # endif
  1710. # ifndef __cpp_lib_sample
  1711. # error "__cpp_lib_sample should be defined in c++2a"
  1712. # endif
  1713. # if __cpp_lib_sample != 201603L
  1714. # error "__cpp_lib_sample should have the value 201603L in c++2a"
  1715. # endif
  1716. # ifndef __cpp_lib_scoped_lock
  1717. # error "__cpp_lib_scoped_lock should be defined in c++2a"
  1718. # endif
  1719. # if __cpp_lib_scoped_lock != 201703L
  1720. # error "__cpp_lib_scoped_lock should have the value 201703L in c++2a"
  1721. # endif
  1722. # if !defined(_LIBCPP_HAS_NO_THREADS)
  1723. # ifndef __cpp_lib_shared_mutex
  1724. # error "__cpp_lib_shared_mutex should be defined in c++2a"
  1725. # endif
  1726. # if __cpp_lib_shared_mutex != 201505L
  1727. # error "__cpp_lib_shared_mutex should have the value 201505L in c++2a"
  1728. # endif
  1729. # else
  1730. # ifdef __cpp_lib_shared_mutex
  1731. # error "__cpp_lib_shared_mutex should not be defined when !defined(_LIBCPP_HAS_NO_THREADS) is not defined!"
  1732. # endif
  1733. # endif
  1734. # if !defined(_LIBCPP_VERSION)
  1735. # ifndef __cpp_lib_shared_ptr_arrays
  1736. # error "__cpp_lib_shared_ptr_arrays should be defined in c++2a"
  1737. # endif
  1738. # if __cpp_lib_shared_ptr_arrays != 201611L
  1739. # error "__cpp_lib_shared_ptr_arrays should have the value 201611L in c++2a"
  1740. # endif
  1741. # else // _LIBCPP_VERSION
  1742. # ifdef __cpp_lib_shared_ptr_arrays
  1743. # error "__cpp_lib_shared_ptr_arrays should not be defined because it is unimplemented in libc++!"
  1744. # endif
  1745. # endif
  1746. # ifndef __cpp_lib_shared_ptr_weak_type
  1747. # error "__cpp_lib_shared_ptr_weak_type should be defined in c++2a"
  1748. # endif
  1749. # if __cpp_lib_shared_ptr_weak_type != 201606L
  1750. # error "__cpp_lib_shared_ptr_weak_type should have the value 201606L in c++2a"
  1751. # endif
  1752. # if !defined(_LIBCPP_HAS_NO_THREADS)
  1753. # ifndef __cpp_lib_shared_timed_mutex
  1754. # error "__cpp_lib_shared_timed_mutex should be defined in c++2a"
  1755. # endif
  1756. # if __cpp_lib_shared_timed_mutex != 201402L
  1757. # error "__cpp_lib_shared_timed_mutex should have the value 201402L in c++2a"
  1758. # endif
  1759. # else
  1760. # ifdef __cpp_lib_shared_timed_mutex
  1761. # error "__cpp_lib_shared_timed_mutex should not be defined when !defined(_LIBCPP_HAS_NO_THREADS) is not defined!"
  1762. # endif
  1763. # endif
  1764. # ifndef __cpp_lib_string_udls
  1765. # error "__cpp_lib_string_udls should be defined in c++2a"
  1766. # endif
  1767. # if __cpp_lib_string_udls != 201304L
  1768. # error "__cpp_lib_string_udls should have the value 201304L in c++2a"
  1769. # endif
  1770. # ifndef __cpp_lib_string_view
  1771. # error "__cpp_lib_string_view should be defined in c++2a"
  1772. # endif
  1773. # if __cpp_lib_string_view != 201606L
  1774. # error "__cpp_lib_string_view should have the value 201606L in c++2a"
  1775. # endif
  1776. # if !defined(_LIBCPP_VERSION)
  1777. # ifndef __cpp_lib_three_way_comparison
  1778. # error "__cpp_lib_three_way_comparison should be defined in c++2a"
  1779. # endif
  1780. # if __cpp_lib_three_way_comparison != 201711L
  1781. # error "__cpp_lib_three_way_comparison should have the value 201711L in c++2a"
  1782. # endif
  1783. # else // _LIBCPP_VERSION
  1784. # ifdef __cpp_lib_three_way_comparison
  1785. # error "__cpp_lib_three_way_comparison should not be defined because it is unimplemented in libc++!"
  1786. # endif
  1787. # endif
  1788. # if !defined(_LIBCPP_VERSION)
  1789. # ifndef __cpp_lib_to_chars
  1790. # error "__cpp_lib_to_chars should be defined in c++2a"
  1791. # endif
  1792. # if __cpp_lib_to_chars != 201611L
  1793. # error "__cpp_lib_to_chars should have the value 201611L in c++2a"
  1794. # endif
  1795. # else // _LIBCPP_VERSION
  1796. # ifdef __cpp_lib_to_chars
  1797. # error "__cpp_lib_to_chars should not be defined because it is unimplemented in libc++!"
  1798. # endif
  1799. # endif
  1800. # ifndef __cpp_lib_transformation_trait_aliases
  1801. # error "__cpp_lib_transformation_trait_aliases should be defined in c++2a"
  1802. # endif
  1803. # if __cpp_lib_transformation_trait_aliases != 201304L
  1804. # error "__cpp_lib_transformation_trait_aliases should have the value 201304L in c++2a"
  1805. # endif
  1806. # ifndef __cpp_lib_transparent_operators
  1807. # error "__cpp_lib_transparent_operators should be defined in c++2a"
  1808. # endif
  1809. # if __cpp_lib_transparent_operators != 201510L
  1810. # error "__cpp_lib_transparent_operators should have the value 201510L in c++2a"
  1811. # endif
  1812. # ifndef __cpp_lib_tuple_element_t
  1813. # error "__cpp_lib_tuple_element_t should be defined in c++2a"
  1814. # endif
  1815. # if __cpp_lib_tuple_element_t != 201402L
  1816. # error "__cpp_lib_tuple_element_t should have the value 201402L in c++2a"
  1817. # endif
  1818. # ifndef __cpp_lib_tuples_by_type
  1819. # error "__cpp_lib_tuples_by_type should be defined in c++2a"
  1820. # endif
  1821. # if __cpp_lib_tuples_by_type != 201304L
  1822. # error "__cpp_lib_tuples_by_type should have the value 201304L in c++2a"
  1823. # endif
  1824. # ifndef __cpp_lib_type_trait_variable_templates
  1825. # error "__cpp_lib_type_trait_variable_templates should be defined in c++2a"
  1826. # endif
  1827. # if __cpp_lib_type_trait_variable_templates != 201510L
  1828. # error "__cpp_lib_type_trait_variable_templates should have the value 201510L in c++2a"
  1829. # endif
  1830. # ifndef __cpp_lib_uncaught_exceptions
  1831. # error "__cpp_lib_uncaught_exceptions should be defined in c++2a"
  1832. # endif
  1833. # if __cpp_lib_uncaught_exceptions != 201411L
  1834. # error "__cpp_lib_uncaught_exceptions should have the value 201411L in c++2a"
  1835. # endif
  1836. # ifndef __cpp_lib_unordered_map_try_emplace
  1837. # error "__cpp_lib_unordered_map_try_emplace should be defined in c++2a"
  1838. # endif
  1839. # if __cpp_lib_unordered_map_try_emplace != 201411L
  1840. # error "__cpp_lib_unordered_map_try_emplace should have the value 201411L in c++2a"
  1841. # endif
  1842. # ifndef __cpp_lib_variant
  1843. # error "__cpp_lib_variant should be defined in c++2a"
  1844. # endif
  1845. # if __cpp_lib_variant != 201606L
  1846. # error "__cpp_lib_variant should have the value 201606L in c++2a"
  1847. # endif
  1848. # ifndef __cpp_lib_void_t
  1849. # error "__cpp_lib_void_t should be defined in c++2a"
  1850. # endif
  1851. # if __cpp_lib_void_t != 201411L
  1852. # error "__cpp_lib_void_t should have the value 201411L in c++2a"
  1853. # endif
  1854. #endif // TEST_STD_VER > 17
  1855. int main(int, char**) { return 0; }