Update nvp tests and documentation

This commit is contained in:
Glen Fernandes committed 2019-09-04 12:28:00 -04:00
1 parent 7b8385afc3
commit 5fb5a3e292
2 files changed
+18 -14

No files matched your search

+6 -2
View File
@@ -94,10 +94,14 @@ void test_deserialize()
void test_trait()
{
BOOST_TEST_TRAIT_TRUE((boost::is_nvp<boost::nvp<double> >));
BOOST_TEST_TRAIT_FALSE((boost::is_nvp<double>));
BOOST_TEST_TRAIT_TRUE((boost::is_nvp<boost::nvp<int> >));
BOOST_TEST_TRAIT_FALSE((boost::is_nvp<int>));
BOOST_TEST_TRAIT_TRUE((boost::is_nvp<const boost::nvp<int> >));
BOOST_TEST_TRAIT_FALSE((boost::is_nvp<const int>));
BOOST_TEST_TRAIT_TRUE((boost::is_nvp<volatile boost::nvp<int> >));
BOOST_TEST_TRAIT_FALSE((boost::is_nvp<volatile int>));
BOOST_TEST_TRAIT_TRUE((boost::is_nvp<const volatile boost::nvp<int> >));
BOOST_TEST_TRAIT_FALSE((boost::is_nvp<const volatile int>));
}
void test_factory()