Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r70110 - sandbox/assign_v2/libs/assign/v2/test/detail
From: erwann.rogard_at_[hidden]
Date: 2011-03-17 22:35:44


Author: e_r
Date: 2011-03-17 22:35:39 EDT (Thu, 17 Mar 2011)
New Revision: 70110
URL: http://svn.boost.org/trac/boost/changeset/70110

Log:
upd assign_v2
Added:
   sandbox/assign_v2/libs/assign/v2/test/detail/traits.cpp (contents, props changed)
   sandbox/assign_v2/libs/assign/v2/test/detail/traits.h (contents, props changed)

Added: sandbox/assign_v2/libs/assign/v2/test/detail/traits.cpp
==============================================================================
--- (empty file)
+++ sandbox/assign_v2/libs/assign/v2/test/detail/traits.cpp 2011-03-17 22:35:39 EDT (Thu, 17 Mar 2011)
@@ -0,0 +1,54 @@
+//////////////////////////////////////////////////////////////////////////////
+// Boost.Assign v2 //
+// //
+// Copyright (C) 2003-2004 Thorsten Ottosen //
+// Copyright (C) 2010 Erwann Rogard //
+// Use, modification and distribution are subject to the //
+// Boost Software License, Version 1.0. (See accompanying file //
+// LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) //
+//////////////////////////////////////////////////////////////////////////////
+#include <cstddef>
+#include <queue>
+#include <stack>
+#include <vector>
+#include <boost/assign/v2/detail/traits.hpp>
+#include <boost/mpl/assert.hpp>
+#include <boost/static_assert.hpp>
+#include <libs/assign/v2/test/detail/traits.h>
+
+namespace test_assign_v2{
+namespace xxx_detail{
+namespace xxx_traits{
+
+ void test()
+ {
+ namespace as2 = boost::assign::v2;
+ namespace ns = as2::value_container_aux;
+ {
+ typedef std::queue<int> v_;
+ BOOST_MPL_ASSERT(( ns::has_push<v_> ));
+ }
+ {
+ typedef std::queue<int> v_;
+ BOOST_MPL_ASSERT(( ns::has_push<v_> ));
+ }
+ {
+ typedef std::vector<int> v_;
+ BOOST_MPL_ASSERT_NOT(( ns::has_push<v_> ));
+ }
+ {
+ typedef std::vector<int> inp_;
+ typedef ns::has_value_type<inp_>::type pred_;
+ BOOST_STATIC_ASSERT(pred_::value);
+ }
+ {
+ typedef int inp_;
+ typedef ns::has_value_type<inp_>::type pred_;
+ BOOST_STATIC_ASSERT(!pred_::value);
+ }
+ }
+
+}// xxx_traits
+}// xxx_detail
+}// xxx_test_assign
+

Added: sandbox/assign_v2/libs/assign/v2/test/detail/traits.h
==============================================================================
--- (empty file)
+++ sandbox/assign_v2/libs/assign/v2/test/detail/traits.h 2011-03-17 22:35:39 EDT (Thu, 17 Mar 2011)
@@ -0,0 +1,23 @@
+//////////////////////////////////////////////////////////////////////////////
+// Boost.Assign v2 //
+// //
+// Copyright (C) 2003-2004 Thorsten Ottosen //
+// Copyright (C) 2010 Erwann Rogard //
+// Use, modification and distribution are subject to the //
+// Boost Software License, Version 1.0. (See accompanying file //
+// LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) //
+//////////////////////////////////////////////////////////////////////////////
+#ifndef LIBS_ASSIGN_V2_TEST_DETAIL_TRAITS_ER_2010_H
+#define LIBS_ASSIGN_V2_TEST_DETAIL_TRAITS_ER_2010_H
+
+namespace test_assign_v2{
+namespace xxx_detail{
+namespace xxx_traits{
+
+ void test();
+
+}// xxx_traits
+}// xxx_detail
+}// test_assign_v2
+
+#endif


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