experimental optional config test

This commit is contained in:
Andrzej Krzemienski
2015-10-08 18:53:28 +02:00
parent 238dd15ed0
commit 0d5061aebe
6 changed files with 173 additions and 0 deletions

View File

@ -52,4 +52,11 @@
# define BOOST_OPTIONAL_DETAIL_USE_ATTRIBUTE_MAY_ALIAS
#endif
#if (defined(_MSC_VER) && _MSC_VER <= 1800)
// on MSCV 2013 and earlier an unwanted temporary is created when you assign from
// a const lvalue of integral type. Thus we bind not to the original address but
// to a temporary.
# define BOOST_OPTIONAL_CONFIG_NO_PROPER_ASSIGN_FROM_CONST_INT
#endif
#endif // header guard