Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Commit 2020-06-18 - MSVC compatibility fixes and Geany-tag fixes.

Changes in CHANGELOG.txt.

Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk | clang_min_400 | gcc_min_408 | msvc_min_1600 | y2020 | geany_tags | tagfiles
Files: files | file ages | folders
SHA3-256: 98e4fb9c1d2ec3d7ffdf83cd17ccfc750e1fb20b664eac65609faf54414b0823
User & Date: luismachuca 2020-06-19 01:38:11
Context
2020-07-21
05:41
Commit 2020-07-20 - One (1) is the lowest biggest thing.

Fixes a few issues in algorithm and adds to the base feature set. check-in: e6c8807a user: luismachuca tags: clang_min_400, y2020, gcc_min_505, pre-release

2020-06-19
01:38
Commit 2020-06-18 - MSVC compatibility fixes and Geany-tag fixes.

Changes in CHANGELOG.txt. check-in: 98e4fb9c user: luismachuca tags: trunk, clang_min_400, gcc_min_408, msvc_min_1600, y2020, geany_tags, tagfiles

2020-06-15
04:19
Commit 2020-06-12 - Not the isolation that kills your commits
  • cxxomfort: Fixed an error with the previous release where cxxomfort's cstdint is ignored and a potentially non-existing stdint.h is included in MSVC < 2010.
  • cxxomfort: Now implements a SD-6 header that tests for and backports some of the SD-6 support macros.
  • cxxomfort: Added cxxo-utils.hpp with some base utilities.
  • cxxomfort: Added outp<T>.
  • cxxomfort: Added CXXO_TYPEOF_OR(), CXXO_AUTO_OR macros.
  • algorithm: Added fix / helper ct_clamp.
  • cerrno: New implementation of errc picks most enumerator values and errno names from the underlying system.
  • system_error: Minor simplifications to the code when in C++<11.
  • library:array_ref: Now supports index types shorter than size_t (via default template parameter), for eg.: small-buffers.
  • library:fixed_vector: Now supports index types shorter than size_t (via allocator), for eg.: short-allocator or small size vectors.
  • library:typesafe_enum: Fixed a missing dependency in C++<11.
  • library:tuple: Fixed implementation of tuple_shift for C++03.
  • library:tuple: Fixed a bug in tuple_pop where the first element of the returned tuple would always be default-constructed.
  • tags: Updated tags.
check-in: 70919e9e user: luismachuca tags: trunk, clang_min_400, gcc_min_408, release, y2020, geany_tags, msvc_min_1700
Changes

Changes to cxxomfort/CHANGELOG.txt.









1
2
3
4
5
6
7








Commit 2020-06-12 - Not the isolation that kills your commits

  *  cxxomfort: Fixed an error with the previous release where cxxomfort's cstdint is ignored and a potentially non-existing stdint.h is included in MSVC < 2010.
  *  cxxomfort: Now implements a SD-6 header that tests for and backports some of the SD-6 support macros.
  *  cxxomfort: Added <tt>cxxo-utils.hpp</tt> with some base utilities.
  *  cxxomfort: Added <tt>outp<T></tt>.
  *  cxxomfort: Added <tt>CXXO_TYPEOF_OR()</tt>, <tt>CXXO_AUTO_OR</tt> macros.
>
>
>
>
>
>
>
>







1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
Commit 2020-06-18 - MSVC compatibility fixes and Geany-tag fixes.

  *  functional: Extended <tt>invoke</tt> to work on MSVC 2010, 2012.
  *  string: Fixed <tt>hash</tt> specs for string in MSVC 2012.
  *  system_error: Fixed <tt>fix::to_errc</tt> in MSVC 2012.
  *  type_traits: Fixed multiple definition of <tt>remove_all_extents</tt> in MSVC >= 2010.


Commit 2020-06-12 - Not the isolation that kills your commits

  *  cxxomfort: Fixed an error with the previous release where cxxomfort's cstdint is ignored and a potentially non-existing stdint.h is included in MSVC < 2010.
  *  cxxomfort: Now implements a SD-6 header that tests for and backports some of the SD-6 support macros.
  *  cxxomfort: Added <tt>cxxo-utils.hpp</tt> with some base utilities.
  *  cxxomfort: Added <tt>outp<T></tt>.
  *  cxxomfort: Added <tt>CXXO_TYPEOF_OR()</tt>, <tt>CXXO_AUTO_OR</tt> macros.

Changes to cxxomfort/cxxomfort/base/explicit_cast.hpp.

2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
...
124
125
126
127
128
129
130







































































































131
132
133
134
135
136
137
#define CXXOMFORT_BASE_EXPLICIT_CAST_HPP
/**
 * @file
 * @brief Explicit cast, and @c explicit_cast conversion operator for C++03
 * 
 * Interfaces defined in this header:
 * 
 * * @c explicit_cast (as a synonym in C++11)
 * * @c CXXO_EXPLICIT_OPERATOR
 * 
 */

#include "../config.hpp"
#include "../base/move.hpp"
#include <iostream> // debug
................................................................................
    operator T () const { return value; }
};
*/


#if defined(DOXYGEN_DOC)
/**







































































































 * @fn CXXO_EXPLICIT_OPERATOR(T)
 * @brief Implements a member conversion operator that provides explicit conversion
 * @ingroup base-features
 * 
 * This macro creates a conversion operator that provides an explicit conversion 
 * to a type of argument type @p T .
 * 







|







 







>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>







2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
...
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
#define CXXOMFORT_BASE_EXPLICIT_CAST_HPP
/**
 * @file
 * @brief Explicit cast, and @c explicit_cast conversion operator for C++03
 * 
 * Interfaces defined in this header:
 * 
 * * @c @ref explicit_cast (as a synonym in C++11)
 * * @c CXXO_EXPLICIT_OPERATOR
 * 
 */

#include "../config.hpp"
#include "../base/move.hpp"
#include <iostream> // debug
................................................................................
    operator T () const { return value; }
};
*/


#if defined(DOXYGEN_DOC)
/**
 * 
 * @page explicit_cast explicit_cast
 * 
 * The cxxomfort library implements an emulation of the "explicit operator" feature of C++11 that allows classes to provide explicit conversion to a defined set of types. 
 * A customized conversion "cast" that works like C++>=11's <tt>explicit operator</tt> and is invoked explicitly via a pseudokeyword "<tt>explicit_cast</tt>". The implementation is built upon based on the explicit_cast implementation from <em>Imperfect C++: Solutions for the Real World</em>, and "adapted out" in C++11.
 * 
 * An example usage:
 * 
 * @code

// lib code

class MyClass {
  ....
  CXXO_EXPLICIT_OPERATOR(bool) () const {
      ...return a bool somehow
  }
};

// client code

MyClass myobject;
...
if (explicit_cast<bool>(myobject)) {
    ...do something
} else {
    ...do something else
}
 * 
 * @endcode
 * 
 * 
 * @section Code Generation
 *
 * In order to invoke this feature, two special keywords are used:
 * 
 * @e Library code adds a special member function to the class using the macro 
 * <tt>CXXO_EXPLICIT_OPERATOR(target_type)</tt> to declare its signature (potentially adding cv-qualification), then continues with the body of the conversion operator.
 * 
 * @e Client code evaluates the conversion via the pseudokeyword <tt>explicit_cast<target_type>(variable)</tt>.
 * 
 * 
 * When in a C++<11 context, using this feature resolves to a special function call that provides a @c bool ; when in C++>=11 context, it resolves instead to the native <tt>explicit operator bool()</tt>.
 * 
 * Example result code for the above code in C++03:
 * 
 * @code

class MyClass {
    operator explicit_cast<bool> () const {
        ...return a bool somehow
    }
};

if (explicit_cast<bool>(myobject)) {
    ....
} else {
	....
}

 * @endcode
 * 
 * Whereas resulting code in a C++>=11 context looks like this:
 * 
 * @code

class MyClass {
    explicit operator bool () const {
        ...return a bool somehow
    }
}

if (static_cast<bool>(myobject)) {
    ....
} else { 
	....
}

 * @endcode
 * 
 * @section Known Limitations
 * 
 * Because the feature is implemented as a pseudo-keyword, it can not be used to create variables at <tt>if(...)</tt> scope, as C++<03 does not have the ability to autoinvoke bool conversions in such contexts.
 * 
 * The solution is simple: implement the guard variable in an outer scope:
 * 
 * @code

// This won't work in C++03 unless MyClass *implicitly* converts to bool
if (MyClass myobject = ....) { ...}
// This always work, in C++98, C++03, C++11, ...
{ MyClass myobject = ....;
if (explicit_cast<bool>(myobject)) { .... }
} // "myobject" dies at this point

 * @endcode
 * 
 * @see http://ryan.gulix.cl/fossil.cgi/cxxomfort/wiki?name=Features/explicit_cast 
 * 
 * */
 
 
 * 
 * @fn CXXO_EXPLICIT_OPERATOR(T)
 * @brief Implements a member conversion operator that provides explicit conversion
 * @ingroup base-features
 * 
 * This macro creates a conversion operator that provides an explicit conversion 
 * to a type of argument type @p T .
 * 

Changes to cxxomfort/cxxomfort/ctime.hpp.

1
2
3
4
5
6
7
8
9
10
11
12
...
147
148
149
150
151
152
153



154
155
156
157
158
159
160
#ifndef CXXOMFORT_CTIME_HPP
#define CXXOMFORT_CTIME_HPP
/**
 * @file
 * @brief Backports for features in <ctime>
 * @xrefitem std0ctime "<ctime>" ""
 *
 */

#include "config.hpp"
#include "base.hpp"
#include CXXO_INCLUDE_SYS(ctime)
................................................................................
 * @brief Backports related to Standard header <tt><ctime></tt>
 * 
 * @code
 * #include <cxxomfort/ctime.hpp>
 * @endcode
 * 
 * (or automatically by including <tt><cxxomfort/backports.hpp></tt> / <tt><cxxomfort/cxxomfort.hpp></tt>)



 * Interfaces defined in this section:
 * 
 * * @c timespec_get() - obtain current time information for a system clock.
 * * @c timespec - information datatype for @c timespec_get .
 * * @c CXXOMFORT_IMPLEMENTS_timespec_get - implementation status for the above.
 * 
 * Non-backport interfaces:




|







 







>
>
>







1
2
3
4
5
6
7
8
9
10
11
12
...
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
#ifndef CXXOMFORT_CTIME_HPP
#define CXXOMFORT_CTIME_HPP
/**
 * @file
 * @brief Backports for features in <tt>\<ctime\></tt>.
 * @xrefitem std0ctime "<ctime>" ""
 *
 */

#include "config.hpp"
#include "base.hpp"
#include CXXO_INCLUDE_SYS(ctime)
................................................................................
 * @brief Backports related to Standard header <tt><ctime></tt>
 * 
 * @code
 * #include <cxxomfort/ctime.hpp>
 * @endcode
 * 
 * (or automatically by including <tt><cxxomfort/backports.hpp></tt> / <tt><cxxomfort/cxxomfort.hpp></tt>)
 * 
 * @section Interfaces
 * 
 * Interfaces defined in this section:
 * 
 * * @c timespec_get() - obtain current time information for a system clock.
 * * @c timespec - information datatype for @c timespec_get .
 * * @c CXXOMFORT_IMPLEMENTS_timespec_get - implementation status for the above.
 * 
 * Non-backport interfaces:

Changes to cxxomfort/cxxomfort/impl/14-functional-transparent.hpp.

23
24
25
26
27
28
29

30

31
32
33
34
35
36
37
 */


#include <cxxomfort/config.hpp>


#define CXXOMFORT_IMPLEMENTS_n3421 CXXO_IMPLSTATUS_BACKPORT()

#define CXXOMFORT_IMPLEMENTS_heterogeneous_operator_functors CXXOMFORT_IMPLEMENTS_n3421



#include CXXO_INCLUDE_SYS(functional)
// <functional> needs to be #included for this to make any sense
#if defined(CXXOMFORT_NOTICES) && (CXXOMFORT_NOTICES > 1)
#pragma message CXXO_NOTICE("enabled <functional> transparent functors")
#endif







>
|
>







23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
 */


#include <cxxomfort/config.hpp>


#define CXXOMFORT_IMPLEMENTS_n3421 CXXO_IMPLSTATUS_BACKPORT()
#if !defined(CXXOMFORT_IMPLEMENTS_heterogeneous_operator_functors)
	#define CXXOMFORT_IMPLEMENTS_heterogeneous_operator_functors CXXOMFORT_IMPLEMENTS_n3421
#endif


#include CXXO_INCLUDE_SYS(functional)
// <functional> needs to be #included for this to make any sense
#if defined(CXXOMFORT_NOTICES) && (CXXOMFORT_NOTICES > 1)
#pragma message CXXO_NOTICE("enabled <functional> transparent functors")
#endif

Changes to cxxomfort/cxxomfort/impl/14-make_unique.hpp.

7
8
9
10
11
12
13

14

15
16
17
18
19
20
21
..
53
54
55
56
57
58
59





















60
61
62
63
64
65
66
..
74
75
76
77
78
79
80



81
82
83
84
85
86





87



88
89
90
91
92
93
//#include "../impl/unique_ptr.hpp"

#if (CXXOMFORT_CXX_STD >= 2014)
	#define CXXOMFORT_IMPLEMENTS_n3588 CXXO_IMPLSTATUS_NATIVE()
#else
	#define CXXOMFORT_IMPLEMENTS_n3588 CXXO_IMPLSTATUS_BACKPORT()
#endif

#define CXXOMFORT_IMPLEMENTS_make_unique CXXOMFORT_IMPLEMENTS_n3588




#if (CXXOMFORT_IMPLEMENTS_n3588==CXXO_IMPLSTATUS_BACKPORT())

namespace cxxomfort { namespace cxxostd { 

................................................................................
}
template <typename T, typename A1, typename A2, typename A3, typename A4, typename A5> inline
std::unique_ptr<T> make_unique (CXXO_FWD_REF(A1) a1, CXXO_FWD_REF(A2) a2, CXXO_FWD_REF(A3) a3, CXXO_FWD_REF(A4) a4, CXXO_FWD_REF(A5) a5) {
    return std::unique_ptr<T> (new T(
      std::forward<A1>(a1), std::forward<A2>(a2), std::forward<A3>(a3), 
      std::forward<A4>(a4), std::forward<A5>(a5) ));
}






















	#endif

} }  // cxxomfort::cxxostd

namespace std {
	using ::cxxomfort::cxxostd::make_unique;
................................................................................
#endif

// this is included after unique_ptr

// Add make_unique
// equivalent to return std::std::unique_ptr<T>(new T(std::forward<Args>(args)...));




#ifdef DOXYGEN_DOC
namespace std {

/**
 * @fn make_unique
 * @brief Creates a unique_ptr holding a constructed object





 */



}

#endif

#endif








>
|
>







 







>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>







 







>
>
>






>
>
>
>
>

>
>
>



<
<
<
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
..
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
..
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



//#include "../impl/unique_ptr.hpp"

#if (CXXOMFORT_CXX_STD >= 2014)
	#define CXXOMFORT_IMPLEMENTS_n3588 CXXO_IMPLSTATUS_NATIVE()
#else
	#define CXXOMFORT_IMPLEMENTS_n3588 CXXO_IMPLSTATUS_BACKPORT()
#endif
#if !defined(CXXOMFORT_IMPLEMENTS_make_unique)
	#define CXXOMFORT_IMPLEMENTS_make_unique CXXOMFORT_IMPLEMENTS_n3588
#endif



#if (CXXOMFORT_IMPLEMENTS_n3588==CXXO_IMPLSTATUS_BACKPORT())

namespace cxxomfort { namespace cxxostd { 

................................................................................
}
template <typename T, typename A1, typename A2, typename A3, typename A4, typename A5> inline
std::unique_ptr<T> make_unique (CXXO_FWD_REF(A1) a1, CXXO_FWD_REF(A2) a2, CXXO_FWD_REF(A3) a3, CXXO_FWD_REF(A4) a4, CXXO_FWD_REF(A5) a5) {
    return std::unique_ptr<T> (new T(
      std::forward<A1>(a1), std::forward<A2>(a2), std::forward<A3>(a3), 
      std::forward<A4>(a4), std::forward<A5>(a5) ));
}
template <typename T
, typename A1, typename A2, typename A3, typename A4, typename A5
, typename A6 > inline
std::unique_ptr<T> make_unique (CXXO_FWD_REF(A1) a1, CXXO_FWD_REF(A2) a2, CXXO_FWD_REF(A3) a3, CXXO_FWD_REF(A4) a4, CXXO_FWD_REF(A5) a5, CXXO_FWD_REF(A6) a6) {
    return std::unique_ptr<T> (new T(
      std::forward<A1>(a1), std::forward<A2>(a2), std::forward<A3>(a3), 
      std::forward<A4>(a4), std::forward<A5>(a5), std::forward<A6>(a6) 
      ));
}
template <typename T
, typename A1, typename A2, typename A3, typename A4, typename A5
, typename A6, typename A7 > inline
std::unique_ptr<T> make_unique (
  CXXO_FWD_REF(A1) a1, CXXO_FWD_REF(A2) a2, CXXO_FWD_REF(A3) a3, CXXO_FWD_REF(A4) a4, CXXO_FWD_REF(A5) a5
, CXXO_FWD_REF(A6) a6, CXXO_FWD_REF(A7) a7) {
    return std::unique_ptr<T> (new T(
      std::forward<A1>(a1), std::forward<A2>(a2), std::forward<A3>(a3), 
      std::forward<A4>(a4), std::forward<A5>(a5), std::forward<A6>(a6),
      std::forward<A7>(a7)
      ));
}

	#endif

} }  // cxxomfort::cxxostd

namespace std {
	using ::cxxomfort::cxxostd::make_unique;
................................................................................
#endif

// this is included after unique_ptr

// Add make_unique
// equivalent to return std::std::unique_ptr<T>(new T(std::forward<Args>(args)...));


#endif

#ifdef DOXYGEN_DOC
namespace std {

/**
 * @fn make_unique
 * @brief Creates a unique_ptr holding a constructed object
 * @ingroup cxx14-backports
 * @xrefitem std0memory "<memory>" "Smart Pointer"
 * 
 * In C++<11 mode, the function can copy (forward) up to 6 arguments to the @a T constructor.
 * 
 */
template <typename T, typename ...Args> inline
std::unique_ptr<T> make_unique (Args&&... args) {
    return std::unique_ptr<T>( new T(std::forward<Args>(args)... ) );
}

#endif



Changes to cxxomfort/cxxomfort/impl/17-invoke.hpp.

47
48
49
50
51
52
53
54
55
56
57
58
59
60
61

} } // cxxomfort::cxxostd

namespace std {
	using ::cxxomfort::cxxostd::invoke;
}

#elif (CXXO_COMPILER_SUPPORT_typeof)

/*
 * invoke (f, t1, t2, ..., tN) is, more or less:
 * 
 * * if f is function member pointer:
 *   (t1.*f)(t2, ...)
 * 







|







47
48
49
50
51
52
53
54
55
56
57
58
59
60
61

} } // cxxomfort::cxxostd

namespace std {
	using ::cxxomfort::cxxostd::invoke;
}

#elif (CXXO_COMPILER_SUPPORT_decltype || CXXO_COMPILER_SUPPORT_typeof)

/*
 * invoke (f, t1, t2, ..., tN) is, more or less:
 * 
 * * if f is function member pointer:
 *   (t1.*f)(t2, ...)
 * 

Changes to cxxomfort/cxxomfort/impl/20-endian.hpp.

36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
// 
// values that describe endianness
// 

#if (CXXOMFORT_COMPILER_ID==CXXO_COMPILERID_MSC && defined(_WIN32))
    #define CXXO_endian_members() little = 0,  big = 1,  native = little

#elif (CXXO_COMPILERVERSION_COMPARE(CXXO_COMPILERID_GCC, < 406))
    #define CXXO_endian_members() little = __LITTLE_ENDIAN, big = __BIG_ENDIAN, native = __BYTE_ORDER

#elif (CXXO_COMPILERVERSION_COMPARE(CXXO_COMPILERID_GCC, >= 406))
    #define CXXO_endian_members()    little = __ORDER_LITTLE_ENDIAN__, big    = __ORDER_BIG_ENDIAN__,  native = __BYTE_ORDER__

#else
    #define CXXO_endian_members()  little = detail::endian_finally::little, big = detail::endian_finally::big , native = 0xffffffffUL & 0x1UL
#endif

// 







|


|







36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
// 
// values that describe endianness
// 

#if (CXXOMFORT_COMPILER_ID==CXXO_COMPILERID_MSC && defined(_WIN32))
    #define CXXO_endian_members() little = 0,  big = 1,  native = little

#elif (CXXO_COMPILERREQ(CXXO_COMPILERID_GCC, < 406))
    #define CXXO_endian_members() little = __LITTLE_ENDIAN, big = __BIG_ENDIAN, native = __BYTE_ORDER

#elif (CXXO_COMPILERREQ(CXXO_COMPILERID_GCC, >= 406))
    #define CXXO_endian_members()    little = __ORDER_LITTLE_ENDIAN__, big    = __ORDER_BIG_ENDIAN__,  native = __BYTE_ORDER__

#else
    #define CXXO_endian_members()  little = detail::endian_finally::little, big = detail::endian_finally::big , native = 0xffffffffUL & 0x1UL
#endif

// 

Changes to cxxomfort/cxxomfort/library/fixed_vector.hpp.

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
...
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
...
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
...
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
...
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
    bool            empty () const CXXO_NOEXCEPTNOTHROW { return m_p == nullptr && m_sz == 0; } 
	//! Access to the data pointer.
    const T*        data () const CXXO_NOEXCEPTNOTHROW { return m_p; }
    //! Access to the data pointer.
    T*              data () CXXO_NOEXCEPTNOTHROW { return m_p; }

    //! Unchecked (!) direct access to elements
    const_reference operator[] (size_t idx) const CXXO_NOEXCEPTNOTHROW {
        return m_p[idx];
    }
    //! @overload operator[]
    reference operator[] (size_t idx) CXXO_NOEXCEPTNOTHROW {
        return m_p[idx];
    }

    //! Checked (throwing) access to elements
    const_reference at (size_t idx) const {
        if (m_sz <= idx) throw std::out_of_range("fixed_vector at(size_t) const");
        return m_p[idx];
    }
    //! @overload at
    reference at (size_t idx) {
        if (m_sz <= idx) throw std::out_of_range("fixed_vector at(size_t)");
        return m_p[idx];
    }
    //! Checked (non-throwing) access to elements
    const_reference at (size_t idx, std::error_code& ec) const CXXO_NOEXCEPTNOTHROW {
        if (m_sz <= idx) ec.assign(EINVAL, std::generic_category());
        return m_p[idx];
    }
    //! Checked (non-throwing) access to elements
    reference at (size_t idx, std::error_code& ec) CXXO_NOEXCEPTNOTHROW {
        if (m_sz <= idx) ec.assign(EINVAL, std::generic_category());
        return m_p[idx];
    }

	//! Checked (non-throwing) access to elements
	reference       at_or (size_t idx, reference rx) { return idx < m_sz ? m_p[idx] : rx; }
	//! Checked (non-throwing) access to elements
	const_reference at_or (size_t idx, const_reference rx) const { return idx < m_sz ? m_p[idx] : rx; }
	

    //! Unchecked(!) access to front
    const_reference front () const CXXO_NOEXCEPTNOTHROW { return m_p[0]; }
    //! @overload front
    reference       front () CXXO_NOEXCEPTNOTHROW { return m_p[0]; }
    //! Unchecked (!) access to back
................................................................................

// unimplemented
#if 0
#endif


    private:
    size_t m_sz;
    T* m_p;
    //Alloc m_a;

    T* alloc (size_type n) {
        return reinterpret_cast<T*>( new char [n * sizeof(T)] );
    }
    
................................................................................

//
// copy constructor
//
template <typename T, typename Alloc>
fixed_vector<T,Alloc>::fixed_vector (fixed_vector const &V) // strong_throw
: m_p ( alloc(V.m_sz) ), m_sz(V.m_sz) {
    size_t i;
    i= 0;
    try {
        using namespace std;
        uninitialized_copy(V.begin(), V.end(), this->begin());
    } catch(...) {

        delete[] m_p; m_p= nullptr;
................................................................................
}


// Constructor cantidad (N)
template <typename T, typename Alloc>
fixed_vector<T,Alloc>::fixed_vector (size_type N) // strong_throw
: m_sz(N), m_p ( alloc(N) ) {
    //size_t i;
    try {
        using namespace std;
        uninitialized_fill(m_p, m_p+m_sz, T());
    } catch(...) {
        delete[] m_p; m_p= nullptr;
        throw; // rethrow
    }//~catch
}

template <typename T, typename Alloc>
fixed_vector<T,Alloc>::fixed_vector (size_type N, T const& v) // strong_throw
: m_sz(N), m_p ( alloc(N) ) {
    using namespace std;
    size_t i= 0;
    (void)i;
    try {
        uninitialized_fill(m_p, m_p+m_sz, v);
    } catch(...) {
        delete[] m_p; m_p= nullptr;
        throw; // rethrow
    }//~catch
................................................................................
fixed_vector<T,Alloc>::~fixed_vector () {
    if (m_p==nullptr && m_sz==0)  return; // empty, nothing to do
    using namespace std;
    typedef typename conditional < std::is_const<T>::value ,
        char const*,
        char*>
    ::type buffertype;
    for (size_t i=0; i < m_sz; ++i) {
        (m_p+i)->~T();
    }
    delete[] reinterpret_cast<buffertype>(m_p);
    m_p= nullptr;
}

template <typename T, typename Alloc>







|



|




|
|



|
|



|




|





|

|







 







|







 







|







 







<













|







 







|







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
...
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
...
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
...
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
...
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
    bool            empty () const CXXO_NOEXCEPTNOTHROW { return m_p == nullptr && m_sz == 0; } 
	//! Access to the data pointer.
    const T*        data () const CXXO_NOEXCEPTNOTHROW { return m_p; }
    //! Access to the data pointer.
    T*              data () CXXO_NOEXCEPTNOTHROW { return m_p; }

    //! Unchecked (!) direct access to elements
    const_reference operator[] (size_type idx) const CXXO_NOEXCEPTNOTHROW {
        return m_p[idx];
    }
    //! @overload operator[]
    reference operator[] (size_type idx) CXXO_NOEXCEPTNOTHROW {
        return m_p[idx];
    }

    //! Checked (throwing) access to elements
    const_reference at (size_type idx) const {
        if (m_sz <= idx) throw std::out_of_range("fixed_vector at(index) const");
        return m_p[idx];
    }
    //! @overload at
    reference at (size_type idx) {
        if (m_sz <= idx) throw std::out_of_range("fixed_vector at(index)");
        return m_p[idx];
    }
    //! Checked (non-throwing) access to elements
    const_reference at (size_type idx, std::error_code& ec) const CXXO_NOEXCEPTNOTHROW {
        if (m_sz <= idx) ec.assign(EINVAL, std::generic_category());
        return m_p[idx];
    }
    //! Checked (non-throwing) access to elements
    reference at (size_type idx, std::error_code& ec) CXXO_NOEXCEPTNOTHROW {
        if (m_sz <= idx) ec.assign(EINVAL, std::generic_category());
        return m_p[idx];
    }

	//! Checked (non-throwing) access to elements
	reference       at_or (size_type idx, reference rx) { return idx < m_sz ? m_p[idx] : rx; }
	//! Checked (non-throwing) access to elements
	const_reference at_or (size_type idx, const_reference rx) const { return idx < m_sz ? m_p[idx] : rx; }
	

    //! Unchecked(!) access to front
    const_reference front () const CXXO_NOEXCEPTNOTHROW { return m_p[0]; }
    //! @overload front
    reference       front () CXXO_NOEXCEPTNOTHROW { return m_p[0]; }
    //! Unchecked (!) access to back
................................................................................

// unimplemented
#if 0
#endif


    private:
    size_type m_sz;
    T* m_p;
    //Alloc m_a;

    T* alloc (size_type n) {
        return reinterpret_cast<T*>( new char [n * sizeof(T)] );
    }
    
................................................................................

//
// copy constructor
//
template <typename T, typename Alloc>
fixed_vector<T,Alloc>::fixed_vector (fixed_vector const &V) // strong_throw
: m_p ( alloc(V.m_sz) ), m_sz(V.m_sz) {
    size_type i;
    i= 0;
    try {
        using namespace std;
        uninitialized_copy(V.begin(), V.end(), this->begin());
    } catch(...) {

        delete[] m_p; m_p= nullptr;
................................................................................
}


// Constructor cantidad (N)
template <typename T, typename Alloc>
fixed_vector<T,Alloc>::fixed_vector (size_type N) // strong_throw
: m_sz(N), m_p ( alloc(N) ) {

    try {
        using namespace std;
        uninitialized_fill(m_p, m_p+m_sz, T());
    } catch(...) {
        delete[] m_p; m_p= nullptr;
        throw; // rethrow
    }//~catch
}

template <typename T, typename Alloc>
fixed_vector<T,Alloc>::fixed_vector (size_type N, T const& v) // strong_throw
: m_sz(N), m_p ( alloc(N) ) {
    using namespace std;
    size_type i= 0;
    (void)i;
    try {
        uninitialized_fill(m_p, m_p+m_sz, v);
    } catch(...) {
        delete[] m_p; m_p= nullptr;
        throw; // rethrow
    }//~catch
................................................................................
fixed_vector<T,Alloc>::~fixed_vector () {
    if (m_p==nullptr && m_sz==0)  return; // empty, nothing to do
    using namespace std;
    typedef typename conditional < std::is_const<T>::value ,
        char const*,
        char*>
    ::type buffertype;
    for (size_type i=0; i < m_sz; ++i) {
        (m_p+i)->~T();
    }
    delete[] reinterpret_cast<buffertype>(m_p);
    m_p= nullptr;
}

template <typename T, typename Alloc>

Changes to cxxomfort/cxxomfort/string.hpp.

96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
...
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
	#if (CXXOMFORT_CXX_STD>=2011)
	#elif (CXXOMFORT_CXX_STD>=1997)
		#include <cxxomfort/functional.hpp>

		#if (0 && (CXXOMFORT_COMPILER_ID==CXXO_COMPILERID_GCC || CXXOMFORT_COMPILER_ID==CXXO_COMPILERID_CLANG))
			#include <tr1/functional>
namespace std { namespace tr1 { 
		#elif (0 && (CXXOMFORT_COMPILER_ID==CXXO_COMPILERID_MSC))
namespace std {
		#else
CXXO_STDTR1_OPEN()
		#endif

template <> 
struct hash<std::u16string> {
................................................................................
		}
		return r;
	}    
};

		#if (0 && (CXXOMFORT_COMPILER_ID==CXXO_COMPILERID_GCC || CXXOMFORT_COMPILER_ID==CXXO_COMPILERID_CLANG) )
} }
		#elif (0 && CXXOMFORT_COMPILER_ID==CXXO_COMPILERID_MSC)
}
		#else
CXXO_STDTR1_CLOSE()
		#endif

	#else // < 1997
	#endif







|







 







|







96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
...
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
	#if (CXXOMFORT_CXX_STD>=2011)
	#elif (CXXOMFORT_CXX_STD>=1997)
		#include <cxxomfort/functional.hpp>

		#if (0 && (CXXOMFORT_COMPILER_ID==CXXO_COMPILERID_GCC || CXXOMFORT_COMPILER_ID==CXXO_COMPILERID_CLANG))
			#include <tr1/functional>
namespace std { namespace tr1 { 
		#elif (CXXO_COMPILERREQ(CXXO_COMPILERID_MSC, >= 1700))
namespace std {
		#else
CXXO_STDTR1_OPEN()
		#endif

template <> 
struct hash<std::u16string> {
................................................................................
		}
		return r;
	}    
};

		#if (0 && (CXXOMFORT_COMPILER_ID==CXXO_COMPILERID_GCC || CXXOMFORT_COMPILER_ID==CXXO_COMPILERID_CLANG) )
} }
		#elif (CXXO_COMPILERREQ(CXXO_COMPILERID_MSC, >= 1700))
}
		#else
CXXO_STDTR1_CLOSE()
		#endif

	#else // < 1997
	#endif

Changes to cxxomfort/cxxomfort/system_error.hpp.

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
...
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
...
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
...
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
...
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
...
597
598
599
600
601
602
603










































604
605
606
607
608
609
610
 * @xrefitem std0system_error "<system_error>" "Header"
 * 
 */

#include <cxxomfort/base.hpp>

#if (defined(CXXOMFORT_NOTICES) && (CXXOMFORT_NOTICES > 1))
#pragma message CXXO_NOTICE("enabled <system_error> support.")
#endif









#if (CXXOMFORT_CXX_STD>=2011 || CXXO_CXXSTDHEADER_system_error)

	#define CXXOMFORT_IMPLEMENTS_header_system_error CXXO_IMPLSTATUS_NATIVE()
	#include <system_error>









................................................................................









namespace cxxomfort { namespace fix {
	using std::errc;
} }



#elif (1 || CXXOMFORT_CXX_STD>=1997)

	#define CXXOMFORT_IMPLEMENTS_header_system_error CXXO_IMPLSTATUS_EMULATION()

/*
 * MSVC 2010 has a broken <system_error> that defines errc inside a 
................................................................................
    v_error(From.v_error), p_category(From.p_category) );

    error_condition ( int val, error_category const& cat ) CXXO_NOEXCEPTNOTHROW
    : v_error(val), p_category(std::addressof(cat))
    {};

    // DMC does not support SFINAE-esques in member template it seems
#if (CXXOMFORT_COMPILER_ID==CXXO_COMPILERID_DMC)
    template <typename EnumE>
    error_condition (EnumE e) CXXO_NOEXCEPTNOTHROW {
        *this= make_error_condition(e);
    }
#else
    #define CXXO_SIGCONDITION (is_error_condition_enum<EnumE>::value)
    template <typename EnumE CXXO_ENABLEIF_TEMPLATE()>
    error_condition (EnumE e CXXO_ENABLEIF_FUNCTION() ) CXXO_NOEXCEPTNOTHROW 
    {
        // this is fine to do so long as we don't add bases to error_condition
        new (this) error_condition (make_error_condition(e));
    }
    #undef CXXO_SIGCONDITION
#endif

    void       assign (int val, error_category const& cat ) CXXO_NOEXCEPTNOTHROW {
        v_error= val;
        p_category= &cat;
    }
    void       clear () CXXO_NOEXCEPTNOTHROW {
        v_error= 0;
................................................................................
    : std::runtime_error(w), E(ec), W(w) {}
    system_error (int v, error_category const& ecat)
    : std::runtime_error(error_code(v,ecat).message()), E(v,ecat), W(error_code(v,ecat).message())
    {}
    system_error (int v, error_category const& ecat, const char* const w)
    : std::runtime_error(w), E(v,ecat), W(w) {}

#if (CXXOMFORT_CXX_STD<2011)
    // we enable construction from a std::ios::failure for conversion
    system_error (std::ios::failure const& E)
    : std::runtime_error(E.what()), E(errno,system_category()), W(E.what())
    {}

#endif


    ~system_error () CXXO_NOEXCEPTNOTHROW {}

    error_code const& code() const CXXO_NOEXCEPTNOTHROW {
        return E;
    }
    
................................................................................
	#if (defined(CXXOFLAG_NO_STD_USING) && CXXOFLAG_NO_STD_USING>0 )
	#else

		#if (CXXOMFORT_CXX_STD>=2011)
		#elif (CXXO_CXXSTDHEADER_system_error>0)
		#else
        
        
namespace std {
    
    using cxxomfort::cxxostd::errc;
    using cxxomfort::cxxostd::make_error_code;
    using cxxomfort::cxxostd::is_error_code_enum;

    using cxxomfort::cxxostd::error_category;
    using cxxomfort::cxxostd::system_category;
................................................................................
    
    using cxxomfort::cxxostd::error_code;
    
    using cxxomfort::cxxostd::system_error;
    
}
    
	#endif // using std

#endif // system_error



//
// helper function
//

namespace cxxomfort { namespace fix {

/**
 * @class errc
 * @brief Aliases a broken @c std::errc implementation (as a namespace rather than as a type) in MSVC 2010.
 * @ingroup cxxomfort-fix
 * 
 * */
#ifdef DOXYGEN_DOC
enum class errc {};
#endif

#if (CXXOMFORT_CXX_STD>=2011)
using std::errc;
#elif (CXXO_COMPILERREQ(CXXO_COMPILERID_MSC,>=1600) && CXXO_COMPILERREQ(CXXO_COMPILERID_MSC, <1800))
using ::std::errc::errc;
#else
using std::errc;
#endif


/**
 * @brief Creates a value of type @c errc given a numeric error code.
 * @ingroup cxxomfort-fix
 * 
 * */
static inline errc to_errc(int E) {
#if (CXXO_CXXSTDHEADER_system_error==0)
    return static_cast<cxxomfort::cxxostd::myerrc::type>(E);
#else
    return static_cast<errc>(E);
#endif
}

} } // cxxomfort::fix


#else // CXXOMFORT_CXX_STD < 1997

	#include <cerrno>
	#include <stdexcept>
	#include <string>
	#include <cstring> // strerror
................................................................................
	
	using cxxomfort::cxxostd::generic_category;
	
}


#endif // CXXOMFORT_CXX_STD










































#endif

/**
 * @page std0system_error <system_error>
 * 
 * @brief Backports and interfaces related to Standard header <tt><system_error></tt>
 * 







|


>
>
|
>
>
>
>
>
|



>
>
>
>
>
>
>
>
>
 
>
>
>
>
>
>
>
>





|







 







|




|
|






|
|







 







|





|
<







 







<
|







 







|

|
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<







 







>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>







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
...
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
...
421
422
423
424
425
426
427
428
429
430
431
432
433
434

435
436
437
438
439
440
441
...
472
473
474
475
476
477
478

479
480
481
482
483
484
485
486
...
491
492
493
494
495
496
497
498
499
500











































501
502
503
504
505
506
507
...
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
 * @xrefitem std0system_error "<system_error>" "Header"
 * 
 */

#include <cxxomfort/base.hpp>

#if (defined(CXXOMFORT_NOTICES) && (CXXOMFORT_NOTICES > 1))
	#pragma message CXXO_NOTICE("enabled <system_error> support.")
#endif

/*
 * Notes
 * 
 * C++>C++11  has <system_error>
 * MSVC 2010 with C++<C++11 has a borked <system_error> with badd errc
 * 
 * */

#if (CXXOMFORT_CXX_STD>=2011)

	#define CXXOMFORT_IMPLEMENTS_header_system_error CXXO_IMPLSTATUS_NATIVE()
	#include <system_error>

namespace cxxomfort { namespace fix {
	using std::errc;
} }


#elif (CXXO_CXXSTDHEADER_system_error)
	#define CXXOMFORT_IMPLEMENTS_header_system_error CXXO_IMPLSTATUS_NATIVE()
	#include <system_error>
................................................................................

	#if (CXXO_COMPILERREQ(CXXO_COMPILERID_MSC, >= 1600))
		#pragma message ("header system_error in MSVC")

namespace cxxomfort { namespace fix {
	using std::errc::errc;
} }
	#else

namespace cxxomfort { namespace fix {
	using std::errc;
} }

	#endif

#elif (1 || CXXOMFORT_CXX_STD>=1997)

	#define CXXOMFORT_IMPLEMENTS_header_system_error CXXO_IMPLSTATUS_EMULATION()

/*
 * MSVC 2010 has a broken <system_error> that defines errc inside a 
................................................................................
    v_error(From.v_error), p_category(From.p_category) );

    error_condition ( int val, error_category const& cat ) CXXO_NOEXCEPTNOTHROW
    : v_error(val), p_category(std::addressof(cat))
    {};

    // DMC does not support SFINAE-esques in member template it seems
	#if (CXXOMFORT_COMPILER_ID==CXXO_COMPILERID_DMC)
    template <typename EnumE>
    error_condition (EnumE e) CXXO_NOEXCEPTNOTHROW {
        *this= make_error_condition(e);
    }
	#else
		#define CXXO_SIGCONDITION (is_error_condition_enum<EnumE>::value)
    template <typename EnumE CXXO_ENABLEIF_TEMPLATE()>
    error_condition (EnumE e CXXO_ENABLEIF_FUNCTION() ) CXXO_NOEXCEPTNOTHROW 
    {
        // this is fine to do so long as we don't add bases to error_condition
        new (this) error_condition (make_error_condition(e));
    }
		#undef CXXO_SIGCONDITION
	#endif

    void       assign (int val, error_category const& cat ) CXXO_NOEXCEPTNOTHROW {
        v_error= val;
        p_category= &cat;
    }
    void       clear () CXXO_NOEXCEPTNOTHROW {
        v_error= 0;
................................................................................
    : std::runtime_error(w), E(ec), W(w) {}
    system_error (int v, error_category const& ecat)
    : std::runtime_error(error_code(v,ecat).message()), E(v,ecat), W(error_code(v,ecat).message())
    {}
    system_error (int v, error_category const& ecat, const char* const w)
    : std::runtime_error(w), E(v,ecat), W(w) {}

	#if (CXXOMFORT_CXX_STD<2011)
    // we enable construction from a std::ios::failure for conversion
    system_error (std::ios::failure const& E)
    : std::runtime_error(E.what()), E(errno,system_category()), W(E.what())
    {}

	#endif


    ~system_error () CXXO_NOEXCEPTNOTHROW {}

    error_code const& code() const CXXO_NOEXCEPTNOTHROW {
        return E;
    }
    
................................................................................
	#if (defined(CXXOFLAG_NO_STD_USING) && CXXOFLAG_NO_STD_USING>0 )
	#else

		#if (CXXOMFORT_CXX_STD>=2011)
		#elif (CXXO_CXXSTDHEADER_system_error>0)
		#else
        

    namespace std {
    
    using cxxomfort::cxxostd::errc;
    using cxxomfort::cxxostd::make_error_code;
    using cxxomfort::cxxostd::is_error_code_enum;

    using cxxomfort::cxxostd::error_category;
    using cxxomfort::cxxostd::system_category;
................................................................................
    
    using cxxomfort::cxxostd::error_code;
    
    using cxxomfort::cxxostd::system_error;
    
}
    
		#endif // using std

	#endif // system_error












































#else // CXXOMFORT_CXX_STD < 1997

	#include <cerrno>
	#include <stdexcept>
	#include <string>
	#include <cstring> // strerror
................................................................................
	
	using cxxomfort::cxxostd::generic_category;
	
}


#endif // CXXOMFORT_CXX_STD

//
// helper function
//

namespace cxxomfort { namespace fix {

/**
 * @class errc
 * @brief Aliases a broken @c std::errc implementation (as a namespace rather than as a type) in MSVC 2010.
 * @ingroup cxxomfort-fix
 * 
 * */
	#ifdef DOXYGEN_DOC
enum class errc {};
	#endif

	#if (CXXOMFORT_CXX_STD >= 2011)
using std::errc;
	#elif (CXXO_COMPILERREQ(CXXO_COMPILERID_MSC,>=1600) && CXXO_COMPILERREQ(CXXO_COMPILERID_MSC, <1800))
using ::std::errc::errc;
	#else
using std::errc;
	#endif


/**
 * @brief Creates a value of type @c errc given a numeric error code.
 * @ingroup cxxomfort-fix
 * 
 * */
static inline errc to_errc(int E) {
	#if (CXXO_CXXSTDHEADER_system_error==0)
    return static_cast<cxxomfort::cxxostd::myerrc::type>(E);
	#else
    return static_cast<errc>(E);
	#endif
}

} } // cxxomfort::fix


#endif

/**
 * @page std0system_error <system_error>
 * 
 * @brief Backports and interfaces related to Standard header <tt><system_error></tt>
 * 

Changes to cxxomfort/cxxomfort/type_traits.hpp.

324
325
326
327
328
329
330

331
332
333
334
335
336
337
#endif // c++11 mode or type_traits emulation


/*
 * remove_all_extents (C++11)
 * */
#if (CXXOMFORT_CXX_STD>=2011)

#else
namespace std {
	using cxxomfort::traits::remove_all_extents;
}
#endif

/*







>







324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
#endif // c++11 mode or type_traits emulation


/*
 * remove_all_extents (C++11)
 * */
#if (CXXOMFORT_CXX_STD>=2011)
#elif (CXXO_COMPILERREQ(CXXO_COMPILERID_MSC, >= 1700 )) // MSVC 2010 onwards defines remove_all_extents
#else
namespace std {
	using cxxomfort::traits::remove_all_extents;
}
#endif

/*