Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r73718 - sandbox/conversion/libs/conversion_ext/test
From: vicente.botet_at_[hidden]
Date: 2011-08-13 15:58:24


Author: viboes
Date: 2011-08-13 15:58:22 EDT (Sat, 13 Aug 2011)
New Revision: 73718
URL: http://svn.boost.org/trac/boost/changeset/73718

Log:
conversion: clang-2.9 0x supports sizeof technique
Text files modified:
   sandbox/conversion/libs/conversion_ext/test/builtins.cpp | 7 +++++++
   sandbox/conversion/libs/conversion_ext/test/intrinsec.cpp | 3 ++-
   sandbox/conversion/libs/conversion_ext/test/is_copy_assignable.cpp | 4 ++--
   sandbox/conversion/libs/conversion_ext/test/is_move_assignable.cpp | 4 ++--
   4 files changed, 13 insertions(+), 5 deletions(-)

Modified: sandbox/conversion/libs/conversion_ext/test/builtins.cpp
==============================================================================
--- sandbox/conversion/libs/conversion_ext/test/builtins.cpp (original)
+++ sandbox/conversion/libs/conversion_ext/test/builtins.cpp 2011-08-13 15:58:22 EDT (Sat, 13 Aug 2011)
@@ -21,6 +21,7 @@
 
 #include <boost/conversion/fp/convert_to.hpp>
 #include <boost/phoenix/core/argument.hpp>
+#include <boost/static_assert.hpp>
 
 
 void convert_to_with_builtin_types() {
@@ -140,6 +141,8 @@
     unsigned int ui(i);
     unsigned long ul(l);
 
+ BOOST_STATIC_ASSERT(( boost::conversion::is_extrinsically_assignable_tagged< char,int >::value));
+
     boost::conversion::assign_to(c, 0);
     boost::conversion::assign_to(c, c);
     boost::conversion::assign_to(c, s);
@@ -190,6 +193,10 @@
     unsigned short us(s);
     unsigned int ui(i);
     unsigned long ul(l);
+ BOOST_STATIC_ASSERT(( boost::is_scalar< char>::value));
+ BOOST_STATIC_ASSERT(( boost::is_assignable< char,int >::value));
+ BOOST_STATIC_ASSERT(( boost::conversion::is_extrinsically_assignable< char,int >::value));
+ BOOST_STATIC_ASSERT(( boost::conversion::is_extrinsically_assignable_tagged< char,int >::value));
 
     boost::conversion::lvalue(c) = c;
     boost::conversion::lvalue(c) = s;

Modified: sandbox/conversion/libs/conversion_ext/test/intrinsec.cpp
==============================================================================
--- sandbox/conversion/libs/conversion_ext/test/intrinsec.cpp (original)
+++ sandbox/conversion/libs/conversion_ext/test/intrinsec.cpp 2011-08-13 15:58:22 EDT (Sat, 13 Aug 2011)
@@ -214,12 +214,13 @@
 
 }
 void assign_to_with_assignemet_operator() {
- BOOST_STATIC_ASSERT(( boost::conversion::is_extrinsically_assignable_tagged< AF_X, X >::value));
   {
     X x;
     //AF_X y1(x); // compile fails
     AF_X y2;
     y2=x;
+ BOOST_STATIC_ASSERT(( boost::conversion::is_extrinsically_assignable< AF_X, X >::value));
+ BOOST_STATIC_ASSERT(( boost::conversion::is_extrinsically_assignable_tagged< AF_X, X >::value));
     assign_to(y2,x);
     lvalue(y2)=x;
   }

Modified: sandbox/conversion/libs/conversion_ext/test/is_copy_assignable.cpp
==============================================================================
--- sandbox/conversion/libs/conversion_ext/test/is_copy_assignable.cpp (original)
+++ sandbox/conversion/libs/conversion_ext/test/is_copy_assignable.cpp 2011-08-13 15:58:22 EDT (Sat, 13 Aug 2011)
@@ -54,8 +54,8 @@
 {
   BOOST_STATIC_ASSERT(( boost::is_copy_assignable<int>::value));
   //BOOST_STATIC_ASSERT((!boost::is_copy_assignable<const int>::value));
- //BOOST_STATIC_ASSERT((!boost::is_copy_assignable<int[]>::value));
- //BOOST_STATIC_ASSERT((!boost::is_copy_assignable<int[3]>::value));
+ BOOST_STATIC_ASSERT((!boost::is_copy_assignable<int[]>::value));
+ BOOST_STATIC_ASSERT((!boost::is_copy_assignable<int[3]>::value));
   BOOST_STATIC_ASSERT(( boost::is_copy_assignable<int&>::value));
   BOOST_STATIC_ASSERT(( boost::is_copy_assignable<A>::value));
   BOOST_STATIC_ASSERT(( boost::is_copy_assignable<bit_zero>::value));

Modified: sandbox/conversion/libs/conversion_ext/test/is_move_assignable.cpp
==============================================================================
--- sandbox/conversion/libs/conversion_ext/test/is_move_assignable.cpp (original)
+++ sandbox/conversion/libs/conversion_ext/test/is_move_assignable.cpp 2011-08-13 15:58:22 EDT (Sat, 13 Aug 2011)
@@ -53,9 +53,9 @@
 int main()
 {
   BOOST_STATIC_ASSERT(( boost::is_move_assignable<int>::value));
- BOOST_STATIC_ASSERT((!boost::is_move_assignable<const int>::value));
+ //BOOST_STATIC_ASSERT((!boost::is_move_assignable<const int>::value));
   BOOST_STATIC_ASSERT((!boost::is_move_assignable<int[]>::value));
- BOOST_STATIC_ASSERT((!boost::is_move_assignable<int[3]>::value));
+ //BOOST_STATIC_ASSERT((!boost::is_move_assignable<int[3]>::value));
   BOOST_STATIC_ASSERT(( boost::is_move_assignable<int&>::value));
   BOOST_STATIC_ASSERT(( boost::is_move_assignable<A>::value));
   BOOST_STATIC_ASSERT(( boost::is_move_assignable<bit_zero>::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