This repository has been archived by the owner on Oct 3, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.hpp
531 lines (422 loc) · 16.2 KB
/
config.hpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
// trance config.hpp - Configuration Library
//
// Copyright (c) 2011 - 2011 Kohei Takahashi (Flast)
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
// copies of the Software, and to permit persons to whom the Software is
// furnished to do so, subject to the following conditions:
//
// The above copyright notice and this permission notice shall be included in
// all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
// THE SOFTWARE.
// XXX NOTE -- 2011/08/24 -- XXX
// Trance.Config is written for Boost 1.48.0.
// If you want to use as trunk, define TRANCE_CONFIG_USE_AS_TRUNK.
#ifndef IG_TRANCE_CONFIG_HPP_ONCE_
#define IG_TRANCE_CONFIG_HPP_ONCE_
#include <boost/config.hpp>
#include <boost/version.hpp>
// Boost 1.34.0 or earlier
#if BOOST_VERSION < 103500
//# warning "Boost 1.34.0 or earlier are not supported in Trance.Config."
#endif // BOOST_VERSION < 103500
// Compiler features
// Boost 1.35.0 and a part of 1.36.0
// Those BOOST_HAS_* macros are deprecated.
#if !defined( BOOST_HAS_CONCEPTS ) || defined( BOOST_NO_CONCEPTS )
# ifndef BOOST_NO_CONCEPTS
# define BOOST_NO_CONCEPTS
# endif // BOOST_NO_CONCEPTS
#else
# define TRANCE_HAS_CONCEPTS
#endif // BOOST_HAS_CONCEPTS
#if !defined( BOOST_HAS_DECLTYPE ) || defined( BOOST_NO_DECLTYPE )
# ifndef BOOST_NO_DECLTYPE
# define BOOST_NO_DECLTYPE
# endif // BOOST_NO_DECLTYPE
#else
# define TRANCE_HAS_DECLTYPE
#endif // BOOST_HAS_DECLTYPE
#if !defined( BOOST_HAS_LONG_LONG ) || defined( BOOST_NO_LONG_LONG )
# ifndef BOOST_NO_LONG_LONG
# define BOOST_NO_LONG_LONG
# endif // BOOST_NO_LONG_LONG
#else
# define TRANCE_HAS_LONG_LONG
#endif // BOOST_HAS_LONG_LONG
#if !defined( BOOST_HAS_RVALUE_REFS ) || defined( BOOST_NO_RVALUE_REFERENCES )
# ifndef BOOST_NO_RVALUE_REFERENCES
# define BOOST_NO_RVALUE_REFERENCES
# endif // BOOST_NO_RVALUE_REFERENCES
#else
# define TRANCE_HAS_RVALUE_REFERENCES
#endif // BOOST_HAS_RVALUE_REFS
#if !defined( BOOST_HAS_STATIC_ASSERT ) || defined( BOOST_NO_STATIC_ASSERT )
# ifndef BOOST_NO_STATIC_ASSERT
# define BOOST_NO_STATIC_ASSERT
# endif // BOOST_NO_STATIC_ASSERT
#else
# define TRANCE_HAS_STATIC_ASSERT
#endif // BOOST_HAS_STATIC_ASSERT
#if !defined( BOOST_HAS_VARIADIC_TMPL ) || defined( BOOST_NO_VARIADIC_TEMPLATES )
# ifndef BOOST_NO_VARIADIC_TEMPLATES
# define BOOST_NO_VARIADIC_TEMPLATES
# endif // BOOST_NO_VARIADIC_TEMPLATES
#else
# define TRANCE_HAS_VARIADIC_TEMPLATES
#endif // BOOST_HAS_VARIADIC_TMPL
// Boost 1.36.0 or later (rest configures)
#if 103600 <= BOOST_VERSION
# ifndef BOOST_NO_CHAR16_T
# define TRANCE_HAS_CHAR16_T
# endif // BOOST_NO_CHAR16_T
# ifndef BOOST_NO_CHAR32_T
# define TRANCE_HAS_CHAR32_T
# endif // BOOST_NO_CHAR32_T
# ifndef BOOST_NO_CONSTEXPR
# define TRANCE_HAS_CONSTEXPR
# endif // BOOST_NO_CONSTEXPR
# ifndef BOOST_NO_DEFAULTED_FUNCTIONS
# define TRANCE_HAS_DEFAULTED_FUNCTIONS
# endif // BOOST_NO_DEFAULTED_FUNCTIONS
# ifndef BOOST_NO_DELETED_FUNCTIONS
# define TRANCE_HAS_DELETED_FUNCTIONS
# endif // BOOST_NO_DELETED_FUNCTIONS
# ifndef BOOST_NO_EXPLICIT_CONVERSION_OPERATORS
# define TRANCE_HAS_EXPLICIT_CONVERSION_OPERATORS
# endif // BOOST_NO_EXPLICIT_CONVERSION_OPERATORS
# ifndef BOOST_NO_EXTERN_TEMPLATE
# define TRANCE_HAS_EXTERN_TEMPLATE
# endif // BOOST_NO_EXTERN_TEMPLATE
# ifndef BOOST_NO_RAW_LITERALS
# define TRANCE_HAS_RAW_LITERALS
# endif // BOOST_NO_RAW_LITERALS
# ifndef BOOST_NO_SCOPED_ENUMS
# define TRANCE_HAS_SCOPED_ENUMS
# endif // BOOST_NO_SCOPED_ENUMS
# ifndef BOOST_NO_UNICODE_LITERALS
# define TRANCE_HAS_UNICODE_LITERALS
# endif // BOOST_NO_UNICODE_LITERALS
#endif // 103600 <= BOOST_VERSION
// Boost 1.38.0 or later
#if 103800 <= BOOST_VERSION
# ifndef BOOST_NO_INITIALIZER_LISTS
# define TRANCE_HAS_INITIALIZER_LISTS
# endif // BOOST_NO_INITIALIZER_LISTS
#endif // 103800 <= BOOST_VERSION
// Boost 1.40.0 or later
#if 104000 <= BOOST_VERSION
# ifndef BOOST_NO_AUTO_DECLARATIONS
# define TRANCE_HAS_AUTO_DECLARATIONS
# endif // BOOST_NO_AUTO_DECLARATIONS
# ifndef BOOST_NO_AUTO_MULTIDECLARATIONS
# define TRANCE_HAS_AUTO_MULTIDECLARATIONS
# endif // BOOST_NO_AUTO_MULTIDECLARATIONS
# ifndef BOOST_NO_TEMPLATE_ALIASES
# define TRANCE_HAS_TEMPLATE_ALIASES
# endif // BOOST_NO_TEMPLATE_ALIASES
# ifndef BOOST_NO_LAMBDAS
# define TRANCE_HAS_LAMBDAS
# endif // BOOST_NO_LAMBDAS
# ifndef BOOST_NO_NULLPTR
# define TRANCE_HAS_NULLPTR
# endif // BOOST_NO_NULLPTR
#endif // 104000 <= BOOST_VERSION
// Boost 1.41.0 or later
#if 104100 <= BOOST_VERSION
# ifndef BOOST_NO_FUNCTION_TEMPLATE_DEFAULT_ARGS
# define TRANCE_HAS_FUNCTION_TEMPLATE_DEFAULT_ARGS
# endif // BOOST_NO_FUNCTION_TEMPLATE_DEFAULT_ARGS
#endif // 104100 <= BOOST_VERSION
// Boost 1.44.0 or later
#if 104400 <= BOOST_VERSION
# ifndef BOOST_NO_COMPLETE_VALUE_INITIALIZATION
# define TRANCE_HAS_COMPLETE_VALUE_INITIALIZATION
# endif // BOOST_NO_COMPLETE_VALUE_INITIALIZATION
#endif // 104400 <= BOOST_VERSION
// Boost 1.45.0 or later
#if 104500 <= BOOST_VERSION
# ifndef BOOST_NO_VARIADIC_MACROS
# define TRANCE_HAS_VARIADIC_MACROS
# endif // BOOST_NO_VARIADIC_MACROS
#endif // 104500 <= BOOST_VERSION
#if 104700 <= BOOST_VERSION
# ifndef BOOST_NO_NOEXCEPT
# define TRANCE_HAS_NOEXCEPT
# endif // BOOST_NO_NOEXCEPT
# ifndef BOOST_NO_UNIFIED_INITIALIZATION_SYNTAX
# define TRANCE_HAS_UNIFIED_INITIALIZATION_SYNTAX
# endif // BOOST_NO_UNIFIED_INITIALIZATION_SYNTAX
#endif // 104700 <= BOOST_VERSION
#if 104800 <= BOOST_VERSION
# ifndef BOOST_NO_DECLTYPE_N3276
# define TRANCE_HAS_DECLTYPE_N3276
# endif // BOOST_NO_DECLTYPE_N3276
#endif // 104800 <= BOOST_VERSION
// Boost 1.48.0 does not support yet.
#if defined( TRANCE_CONFIG_USE_AS_TRUNK )
#endif // TRANCE_CONFIG_USE_AS_TRUNK
// Utilities
#ifdef TRANCE_HAS_CONSTEXPR
# define TRANCE_CONSTEXPR constexpr
#else
# define TRANCE_CONSTEXPR
#endif // TRANCE_HAS_CONSTEXPR
#ifdef TRANCE_HAS_DELETED_FUNCTIONS
# define TRANCE_DELETED_FUNCTION = delete
#else
# define TRANCE_DELETED_FUNCTION
#endif // TRANCE_HAS_DELETED_FUNCTIONS
#ifdef TRANCE_HAS_NOEXCEPT
# define TRANCE_NOEXCEPT noexcept
# define TRANCE_THROW_SPEC_OR_NOEXCEPT noexcept
#else
# define TRANCE_NOEXCEPT
// note: std::bad_alloc's members are granted throw() in C++98/03,
// but in C++0x(a.k.a C++11), are granted noexcept.
# define TRANCE_THROW_SPEC_OR_NOEXCEPT throw()
#endif // TRANCE_HAS_NOEXCEPT
// Standard Library features
// Boost 1.38.0 or later
#if 103800 <= BOOST_VERSION
# ifdef BOOST_NO_STD_UNORDERED
# ifndef BOOST_NO_0X_HDR_UNORDERED_MAP
# define BOOST_NO_0X_HDR_UNORDERED_MAP
# endif
# ifndef BOOST_NO_0X_HDR_UNORDERED_SET
# define BOOST_NO_0X_HDR_UNORDERED_SET
# endif
# endif // BOOST_NO_STD_UNORDERED
# ifndef BOOST_NO_0X_HDR_UNORDERED_MAP
# define TRANCE_HAS_0X_HDR_UNORDERED_MAP
# endif // BOOST_NO_0X_HDR_UNORDERED_MAP
# ifndef BOOST_NO_0X_HDR_UNORDERED_SET
# define TRANCE_HAS_0X_HDR_UNORDERED_SET
# endif // BOOST_NO_0X_HDR_UNORDERED_SET
#endif // 103800 <= BOOST_VERSION
#if 104000 <= BOOST_VERSION
# ifndef BOOST_NO_0X_HDR_ARRAY
# define TRANCE_HAS_0X_HDR_ARRAY
# endif // BOOST_NO_0X_HDR_ARRAY
# ifndef BOOST_NO_0X_HDR_CHRONO
# define TRANCE_HAS_0X_HDR_CHRONO
# endif // BOOST_NO_0X_HDR_CHRONO
# ifndef BOOST_NO_0X_HDR_CODECVT
# define TRANCE_HAS_0X_HDR_CODECVT
# endif // BOOST_NO_0X_HDR_CODECVT
// TODO: check defined version
//# ifndef BOOST_NO_0X_HDR_CONCEPTS
//# define TRANCE_HAS_0X_HDR_CONCEPTS
//# endif // BOOST_NO_0X_HDR_CONCEPTS
# ifndef BOOST_NO_0X_HDR_CONDITION_VARIABLE
# define TRANCE_HAS_0X_HDR_CONDITION_VARIABLE
# endif // BOOST_NO_0X_HDR_CONDITION_VARIABLE
// TODO: check defined version
//# ifndef BOOST_NO_0X_HDR_CONTAINER_CONCEPTS
//# define TRANCE_HAS_0X_HDR_CONCEPTS
//# endif // BOOST_NO_0X_HDR_CONTAINER_CONCEPTS
# ifndef BOOST_NO_0X_HDR_FORWARD_LIST
# define TRANCE_HAS_0X_HDR_FORWARD_LIST
# endif // BOOST_NO_0X_HDR_FORWARD_LIST
# ifndef BOOST_NO_0X_HDR_FUTURE
# define TRANCE_HAS_0X_HDR_FUTURE
# endif // BOOST_NO_0X_HDR_FUTURE
# ifndef BOOST_NO_0X_HDR_INITIALIZER_LIST
# define TRANCE_HAS_0X_HDR_INITIALIZER_LIST
# endif // BOOST_NO_0X_HDR_INITIALIZER_LIST
// TODO: check defined version
//# ifndef BOOST_NO_0X_HDR_ITERATOR_CONCEPTS
//# define TRANCE_HAS_0X_HDR_ITERATOR_CONCEPTS
//# endif // BOOST_NO_0X_HDR_ITERATOR_CONCEPTS
// TODO: check defined version
//# ifndef BOOST_NO_0X_HDR_MEMORY_CONCEPTS
//# define TRANCE_HAS_0X_HDR_MEMORY_CONCEPTS
//# endif // BOOST_NO_0X_HDR_MEMORY_CONCEPTS
# ifndef BOOST_NO_0X_HDR_MUTEX
# define TRANCE_HAS_0X_HDR_MUTEX
# endif // BOOST_NO_0X_HDR_MUTEX
# ifndef BOOST_NO_0X_HDR_RANDOM
# define TRANCE_HAS_0X_HDR_RANDOM
# endif // BOOST_NO_0X_HDR_RANDOM
# ifndef BOOST_NO_0X_HDR_RATIO
# define TRANCE_HAS_0X_HDR_RATIO
# endif // BOOST_NO_0X_HDR_RATIO
# ifndef BOOST_NO_0X_HDR_REGEX
# define TRANCE_HAS_0X_HDR_REGEX
# endif // BOOST_NO_0X_HDR_REGEX
# ifndef BOOST_NO_0X_HDR_SYSTEM_ERROR
# define TRANCE_HAS_0X_HDR_SYSTEM_ERROR
# endif // BOOST_NO_0X_HDR_SYSTEM_ERROR
# ifndef BOOST_NO_0X_HDR_THREAD
# define TRANCE_HAS_0X_HDR_THREAD
# endif // BOOST_NO_0X_HDR_THREAD
# ifndef BOOST_NO_0X_HDR_TUPLE
# define TRANCE_HAS_0X_HDR_TUPLE
# endif // BOOST_NO_0X_HDR_TUPLE
# ifndef BOOST_NO_0X_HDR_TYPE_TRAITS
# define TRANCE_HAS_0X_HDR_TYPE_TRAITS
# endif // BOOST_NO_0X_HDR_TYPE_TRAITS
#endif // 104000 <= BOOST_VERSION
// Boost 1.44.0 or later
#if 104400 <= BOOST_VERSION
# ifndef BOOST_NO_0X_HDR_TYPEINDEX
# define TRANCE_HAS_0X_HDR_TYPEINDEX
# endif // BOOST_NO_0X_HDR_TYPEINDEX
#endif // 104400 <= BOOST_VERSION
// Boost 1.45.0 or later
#if 104500 <= BOOST_VERSION
# ifndef BOOST_NO_NUMERIC_LIMITS_LOWEST
# define TRANCE_HAS_NUMERIC_LIMITS_LOWEST
# endif // BOOST_NO_NUMERIC_LIMITS_LOWEST
#endif // 104500 <= BOOST_VERSION
// Boost 1.48.0 does not support yet.
#if defined( TRANCE_CONFIG_USE_AS_TRUNK )
#endif // TRANCE_CONFIG_USE_AS_TRUNK
// Alternatives
// Boost.Unorderd supported after 1.36.0.
#ifdef TRANCE_HAS_0X_HDR_UNORDERED_MAP // require 1.38.0
# define TRANCE_UNORDERED_MAP_NAMESPACE ::std
# define TRANCE_UNORDERED_MAP_HDR <unordered_map>
#else
# define TRANCE_UNORDERED_MAP_NAMESPACE ::boost
# define TRANCE_UNORDERED_MAP_HDR <boost/unordered_map.hpp>
#endif // TRANCE_HAS_0X_HDR_UNORDERED_MAP
// Boost.Unorderd supported after 1.36.0.
#ifdef TRANCE_HAS_0X_HDR_UNORDERED_SET // require 1.38.0
# define TRANCE_UNORDERED_SET_NAMESPACE ::std
# define TRANCE_UNORDERED_SET_HDR <unordered_set>
#else
# define TRANCE_UNORDERED_SET_NAMESPACE ::boost
# define TRANCE_UNORDERED_SET_HDR <boost/unordered_set.hpp>
#endif // TRANCE_HAS_0X_HDR_UNORDERED_SET
// Boost.Array supported after 1.17.0.
#ifdef TRANCE_HAS_0X_HDR_ARRAY // require 1.40.0
# define TRANCE_ARRAY_NAMESPACE ::std
# define TRANCE_ARRAY_HDR <array>
#else
# define TRANCE_ARRAY_NAMESPACE ::boost
# define TRANCE_ARRAY_HDR <boost/array.hpp>
#endif // TRANCE_HAS_0X_HDR_ARRAY
// Boost.Chrono supported after 1.47.0.
#ifdef TRANCE_HAS_0X_HDR_CHRONO // require 1.40.0
# define TRANCE_CHRONO_NAMESPACE ::std
# define TRANCE_CHRONO_HDR <chrono>
#elif 104700 <= BOOST_VERSION
# define TRANCE_CHRONO_NAMESPACE ::boost
# define TRANCE_CHRONO_HDR <boost/chrono.hpp>
#else
# define TRANCE_CHRONO_NAMESPACE
# define TRANCE_CHRONO_HDR <trance/config/chrono.hpp>
#endif // TRANCE_HAS_0X_HDR_CHRONO
// Boost.Thread supported after 1.25.0.
#ifdef TRANCE_HAS_0X_HDR_CONDITION_VARIABLE // require 1.40.0
# define TRANCE_CONDITION_VARIABLE_NAMESPACE ::std
# define TRANCE_CONDITION_VARIABLE_HDR <condition_variable>
#else
# define TRANCE_CONDITION_VARIABLE_NAMESPACE ::boost
# define TRANCE_CONDITION_VARIABLE_HDR <boost/thread/condition_variable.hpp>
#endif // TRANCE_HAS_0X_HDR_CONDITION_VARIABLE
// Boost.Thread supported after 1.25.0.
#ifdef TRANCE_HAS_0X_HDR_FUTURE // require 1.40.0
# define TRANCE_FUTURE_NAMESPACE ::std
# define TRANCE_FUTURE_HDR <future>
#else
# define TRANCE_FUTURE_NAMESPACE ::boost
# define TRANCE_FUTURE_HDR <boost/thread/future.hpp>
#endif // TRANCE_HAS_0X_HDR_FUTURE
// Boost.Thread supported after 1.25.0.
#ifdef TRANCE_HAS_0X_HDR_MUTEX // require 1.40.0
# define TRANCE_MUTEX_NAMESPACE ::std
# define TRANCE_MUTEX_HDR <mutex>
#else
# define TRANCE_MUTEX_NAMESPACE ::boost
# define TRANCE_MUTEX_HDR <boost/thread/mutex.hpp>
#endif // TRANCE_HAS_0X_HDR_MUTEX
// Boost.Random supported after 1.15.0.
#ifdef TRANCE_HAS_0X_HDR_RANDOM // require 1.40.0
# define TRANCE_RANDOM_NAMESPACE ::std
# define TRANCE_RANDOM_HDR <random>
#else
# define TRANCE_RANDOM_NAMESPACE ::boost
# define TRANCE_RANDOM_HDR <boost/random.hpp>
#endif // TRANCE_HAS_0X_HDR_RANDOM
// Boost.Ratio supported after 1.47.0.
#ifdef TRANCE_HAS_0X_HDR_RATIO // require 1.40.0
# define TRANCE_RATIO_NAMESPACE ::std
# define TRANCE_RATIO_HDR <ratio>
#elif 104700 <= BOOST_VERSION
# define TRANCE_RATIO_NAMESPACE ::boost
# define TRANCE_RATIO_HDR <boost/ratio.hpp>
#else
# define TRANCE_RATIO_NAMESPACE
# define TRANCE_RATIO_HDR <trance/config/ratio.hpp>
#endif // TRANCE_HAS_0X_HDR_RATIO
// Boost.Regex supported after 1.18.0.
#ifdef TRANCE_HAS_0X_HDR_REGEX // require 1.40.0
# define TRANCE_REGEX_NAMESPACE ::std
# define TRANCE_REGEX_HDR <regex>
#else
# define TRANCE_REGEX_NAMESPACE ::boost
# define TRANCE_REGEX_HDR <boost/regex.hpp>
#endif // TRANCE_HAS_0X_HDR_REGEX
// Boost.System supported after 1.35.0.
#ifdef TRANCE_HAS_0X_HDR_SYSTEM_ERROR // require 1.40.0
# define TRANCE_SYSTEM_ERROR_NAMESPACE ::std
# define TRANCE_SYSTEM_ERROR_HDR <system_error>
#else
# define TRANCE_SYSTEM_ERROR_NAMESPACE ::boost
# define TRANCE_SYSTEM_ERROR_HDR <boost/system/system_error.hpp>
#endif // TRANCE_HAS_0X_HDR_SYSTEM_ERROR
// Boost.Thread supported after 1.25.0.
#ifdef TRANCE_HAS_0X_HDR_THREAD // require 1.40.0
# define TRANCE_THREAD_NAMESPACE ::std
# define TRANCE_THREAD_HDR <thread>
#else
# define TRANCE_THREAD_NAMESPACE ::boost
# define TRANCE_THREAD_HDR <boost/thread.hpp>
#endif // TRANCE_HAS_0X_HDR_THREAD
// Boost.Tuple supported after 1.24.0.
#ifdef TRANCE_HAS_0X_HDR_TUPLE // require 1.40.0
# define TRANCE_TUPLE_NAMESPACE ::std
# define TRANCE_TUPLE_HDR <tuple>
#else
# define TRANCE_TUPLE_NAMESPACE ::boost
# define TRANCE_TUPLE_HDR <boost/tuple.hpp>
#endif // TRANCE_HAS_0X_HDR_TUPLE
// Boost.Type Traits supported after 1.13.0.
#ifdef TRANCE_HAS_0X_HDR_TYPE_TRAITS // require 1.40.0
# define TRANCE_TYPE_TRAITS_NAMESPACE ::std
# define TRANCE_TYPE_TRAITS_HDR <type_traits>
#else
# define TRANCE_TYPE_TRAITS_NAMESPACE ::boost
# define TRANCE_TYPE_TRAITS_HDR <boost/type_traits.hpp>
#endif // TRANCE_HAS_0X_HDR_TYPE_TRAITS
// Compiler local configurations.
#ifdef __GNUC__
# include <trance/config/compiler/gcc.hpp>
#elif _MSC_VER
# include <trance/config/compiler/msvc.hpp>
#endif
#include <trance/config/compiler/default.hpp>
#include <boost/preprocessor/config/limits.hpp>
// Configurations for Trance.
#ifdef TRANCE_MPL_LIMIT_VARIADIC_EMULATE
# if TRANCE_MPL_LIMIT_VARIADIC_EMULATE < 1
# error "TRANCE_MPL_LIMIT_VARIADIC_EMULATE cannot be less than 1."
# elif BOOST_PP_LIMIT_FOR < TRANCE_MPL_LIMIT_VARIADIC_EMULATE
# error "TRANCE_MPL_LIMIT_VARIADIC_EMULATE should be equal or less than BOOST_PP_LIMIT_FOR."
# endif
#else
# define TRANCE_MPL_LIMIT_VARIADIC_EMULATE 10
#endif // TRANCE_MPL_LIMIT_VARIADIC_EMULATE
#endif // IG_TRANCE_CONFIG_HPP_ONCE_