2
0
mirror of https://github.com/boostorg/python.git synced 2026-01-27 19:12:16 +00:00

Tests for Tru64 CXX regression

[SVN r14451]
This commit is contained in:
Dave Abrahams
2002-07-14 16:09:46 +00:00
parent 3e07ba1012
commit df7b4d81c7

View File

@@ -3,10 +3,18 @@
#include <boost/static_assert.hpp>
#include <boost/python/detail/string_literal.hpp>
using namespace boost::python::detail;
template <class T>
void expect_string_literal(T const&)
{
BOOST_STATIC_ASSERT(is_string_literal<T const>::value);
}
int main()
{
using namespace boost::python::detail;
expect_string_literal("hello");
BOOST_STATIC_ASSERT(!is_string_literal<int*&>::value);
BOOST_STATIC_ASSERT(!is_string_literal<int* const&>::value);
BOOST_STATIC_ASSERT(!is_string_literal<int*volatile&>::value);