|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r68598 - in trunk/libs/icl/test: cmp_clang_ttp_passing_ cmp_msvc_value_born_error_
From: afojgo_at_[hidden]
Date: 2011-02-01 05:52:19
Author: jofaber
Date: 2011-02-01 05:52:13 EST (Tue, 01 Feb 2011)
New Revision: 68598
URL: http://svn.boost.org/trac/boost/changeset/68598
Log:
Modified new test, replaced tabs.
Text files modified:
trunk/libs/icl/test/cmp_clang_ttp_passing_/cmp_clang_ttp_passing.cpp | 23 +++++++++++++++--------
trunk/libs/icl/test/cmp_msvc_value_born_error_/cmp_msvc_value_born_error.cpp | 6 +++---
2 files changed, 18 insertions(+), 11 deletions(-)
Modified: trunk/libs/icl/test/cmp_clang_ttp_passing_/cmp_clang_ttp_passing.cpp
==============================================================================
--- trunk/libs/icl/test/cmp_clang_ttp_passing_/cmp_clang_ttp_passing.cpp (original)
+++ trunk/libs/icl/test/cmp_clang_ttp_passing_/cmp_clang_ttp_passing.cpp 2011-02-01 05:52:13 EST (Tue, 01 Feb 2011)
@@ -18,20 +18,27 @@
template
<
- class T,
+ class T,
template<class>class less_T = sep::less
>
-class cont{};
+class cont
+{
+public:
+ boost test()const { return true; }
+};
template
<
- class T,
+ class T,
template<class T2,
- template<class>class less_T2 = sep::less>class Cont
+ template<class>class less_T2 = sep::less>
+ class Cont
>
-void func()
+bool func()
{
- typedef Cont<T> cont_type;
+ typedef Cont<T> cont_type;
+ cont_type x;
+ return x.test();
}
}//namespace sep
@@ -39,7 +46,7 @@
BOOST_AUTO_TEST_CASE(dummy)
{
- sep::func<int, sep::cont>();
- BOOST_CHECK( true );
+ bool executed = sep::func<int, sep::cont>();
+ BOOST_CHECK( executed );
}
Modified: trunk/libs/icl/test/cmp_msvc_value_born_error_/cmp_msvc_value_born_error.cpp
==============================================================================
--- trunk/libs/icl/test/cmp_msvc_value_born_error_/cmp_msvc_value_born_error.cpp (original)
+++ trunk/libs/icl/test/cmp_msvc_value_born_error_/cmp_msvc_value_born_error.cpp 2011-02-01 05:52:13 EST (Tue, 01 Feb 2011)
@@ -10,8 +10,8 @@
#include "../unit_test_unwarned.hpp"
namespace unhelpful{
- // This declaration of a class template will cause
- // the compilation of line 17 to fail with syntax error C2059
+ // This declaration of a class template will cause
+ // the compilation of line 17 to fail with syntax error C2059
template<class T> class value{};
}
@@ -34,6 +34,6 @@
BOOST_AUTO_TEST_CASE(dummy)
{
- BOOST_CHECK( meta_predicate<int>::value );
+ BOOST_CHECK( meta_predicate<int>::value );
}
Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk