From 9ba316e3aa3f6fb7059f7ffdae343da6176f98d3 Mon Sep 17 00:00:00 2001 From: Thomas Witt Date: Thu, 29 May 2003 17:43:16 +0000 Subject: [PATCH] Added test to detect category problem. [SVN r1289] --- test/iterator_adaptor_test.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/test/iterator_adaptor_test.cpp b/test/iterator_adaptor_test.cpp index a06d340..dcb04b5 100644 --- a/test/iterator_adaptor_test.cpp +++ b/test/iterator_adaptor_test.cpp @@ -155,6 +155,8 @@ public: in_iterator(boost::input_iterator_archetype d) : super_t(d) { } }; +template struct undefined; + int main() { @@ -194,6 +196,11 @@ main() typedef ptr_iterator Iter1; BOOST_STATIC_ASSERT((boost::is_same::value)); BOOST_STATIC_ASSERT((boost::is_same::value)); + + BOOST_STATIC_ASSERT((boost::is_same::value)); + + undefined un; + #if !BOOST_WORKAROUND(__BORLANDC__, BOOST_TESTED_AT(0x551)) // Borland has known problems with const BOOST_STATIC_ASSERT((boost::is_same::value));