Fixing problems found by the vacpp test.

[SVN r59743]
This commit is contained in:
Emil Dotchevski
2010-02-18 05:58:00 +00:00
parent 2f18eef27a
commit 0cebd7efbf
5 changed files with 115 additions and 59 deletions

View File

@ -4,7 +4,6 @@
//file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
#include <boost/exception/detail/is_output_streamable.hpp>
#include <boost/detail/lightweight_test.hpp>
namespace
n1
@ -31,11 +30,20 @@ n2
}
}
template <bool Test>
struct test;
template <>
struct
test<true>
{
};
int
main()
{
BOOST_TEST( !boost::is_output_streamable<n1::c1>::value );
BOOST_TEST( boost::is_output_streamable<n2::c2>::value );
BOOST_TEST( boost::is_output_streamable<int>::value );
return boost::report_errors();
test<!boost::is_output_streamable<n1::c1>::value>();
test<boost::is_output_streamable<n2::c2>::value>();
test<boost::is_output_streamable<int>::value>();
return 0;
}