Do not use long double type in lexical_cast for internal variables if Boost.Math has no functions for long double (refs #8162)

Do not test lexical_cast on long doubles, if Boost.Math does not support long double

[SVN r83129]
This commit is contained in:
Antony Polukhin committed 2013-02-24 13:34:57 +00:00
1 parent a15dbed640
commit 694f7b5033
4 files changed
+18 -3

No files matched your search

+2
View File
@@ -37,7 +37,9 @@ void do_test_on_empty_input(T& v)
BOOST_CHECK_THROW(lexical_cast<int>(v), bad_lexical_cast);
BOOST_CHECK_THROW(lexical_cast<float>(v), bad_lexical_cast);
BOOST_CHECK_THROW(lexical_cast<double>(v), bad_lexical_cast);
#ifndef BOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS
BOOST_CHECK_THROW(lexical_cast<long double>(v), bad_lexical_cast);
#endif
BOOST_CHECK_THROW(lexical_cast<unsigned int>(v), bad_lexical_cast);
BOOST_CHECK_THROW(lexical_cast<unsigned short>(v), bad_lexical_cast);
#if defined(BOOST_HAS_LONG_LONG)