Update nvp tests and documentation

This commit is contained in:
Glen Fernandes
2019-09-04 12:28:00 -04:00
parent 7b8385afc3
commit 5fb5a3e292
2 changed files with 18 additions and 14 deletions

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()