docs and tests fixes

This commit is contained in:
Andrzej Krzemienski
2018-11-08 18:46:03 +01:00
parent 29b2dae630
commit 545fd9a72f
4 changed files with 17 additions and 1 deletions

View File

@ -58,10 +58,20 @@ struct W
void test_value_init()
{
#ifndef BOOST_NO_CXX11_UNIFIED_INITIALIZATION_SYNTAX
{
S s;
W<S> w{s};
}
#endif
{
S s;
W<S> w(s);
}
}
void test_optoinal_reference_wrapper()
{
boost::optional<W<S&> > o;
BOOST_TEST(boost::none == o);
}
@ -70,6 +80,7 @@ int main()
{
test_tc_base();
test_value_init();
test_optoinal_reference_wrapper();
return boost::report_errors();
}