mirror of
https://github.com/boostorg/parameter.git
synced 2026-01-21 05:02:14 +00:00
Compare commits
7 Commits
boost-1.63
...
boost-1.65
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
247536c841 | ||
|
|
fd4a18d490 | ||
|
|
a2da4c32f5 | ||
|
|
a3b5ce8a93 | ||
|
|
612563e0fe | ||
|
|
904e2f5020 | ||
|
|
9a8ad86fd7 |
@@ -339,6 +339,7 @@ struct arg_list : Next
|
||||
template <class Default>
|
||||
reference operator[](lazy_default<key_type, Default>) const
|
||||
{
|
||||
BOOST_MPL_ASSERT_NOT((holds_maybe));
|
||||
return arg.value;
|
||||
}
|
||||
|
||||
|
||||
@@ -3,6 +3,7 @@
|
||||
#include <boost/mpl/is_sequence.hpp>
|
||||
#include <boost/noncopyable.hpp>
|
||||
#include <memory>
|
||||
#include <boost/config.hpp>
|
||||
|
||||
using namespace boost::parameter;
|
||||
using boost::mpl::_;
|
||||
@@ -86,7 +87,16 @@ struct D {};
|
||||
using boost::python::bases;
|
||||
typedef boost::python::class_<B, boost::noncopyable> c1;
|
||||
|
||||
#if defined(BOOST_NO_CXX11_SMART_PTR)
|
||||
|
||||
typedef boost::python::class_<D, std::auto_ptr<D>, bases<B> > c2;
|
||||
|
||||
#else
|
||||
|
||||
typedef boost::python::class_<D, std::unique_ptr<D>, bases<B> > c2;
|
||||
|
||||
#endif
|
||||
|
||||
BOOST_MPL_ASSERT((boost::is_same<c1::class_type, B>));
|
||||
BOOST_MPL_ASSERT((boost::is_same<c1::base_list, bases<> >));
|
||||
BOOST_MPL_ASSERT((boost::is_same<c1::held_type, B>));
|
||||
@@ -96,8 +106,19 @@ BOOST_MPL_ASSERT((
|
||||
|
||||
BOOST_MPL_ASSERT((boost::is_same<c2::class_type, D>));
|
||||
BOOST_MPL_ASSERT((boost::is_same<c2::base_list, bases<B> >));
|
||||
|
||||
#if defined(BOOST_NO_CXX11_SMART_PTR)
|
||||
|
||||
BOOST_MPL_ASSERT((
|
||||
boost::is_same<c2::held_type, std::auto_ptr<D> >
|
||||
));
|
||||
BOOST_MPL_ASSERT((boost::is_same<c2::copyable, void>));
|
||||
|
||||
#else
|
||||
|
||||
BOOST_MPL_ASSERT((
|
||||
boost::is_same<c2::held_type, std::unique_ptr<D> >
|
||||
));
|
||||
|
||||
#endif
|
||||
|
||||
BOOST_MPL_ASSERT((boost::is_same<c2::copyable, void>));
|
||||
|
||||
@@ -4,6 +4,7 @@
|
||||
#include <boost/noncopyable.hpp>
|
||||
#include <boost/type_traits/is_class.hpp>
|
||||
#include <memory>
|
||||
#include <boost/config.hpp>
|
||||
|
||||
using namespace boost::parameter;
|
||||
|
||||
@@ -77,7 +78,17 @@ typedef boost::python::class_<
|
||||
> c1;
|
||||
|
||||
typedef boost::python::class_<
|
||||
|
||||
#if defined(BOOST_NO_CXX11_SMART_PTR)
|
||||
|
||||
D, held_type<std::auto_ptr<D> >, base_list<bases<B> >
|
||||
|
||||
#else
|
||||
|
||||
D, held_type<std::unique_ptr<D> >, base_list<bases<B> >
|
||||
|
||||
#endif
|
||||
|
||||
> c2;
|
||||
|
||||
BOOST_MPL_ASSERT((boost::is_same<c1::class_type, B>));
|
||||
@@ -89,7 +100,19 @@ BOOST_MPL_ASSERT((
|
||||
|
||||
BOOST_MPL_ASSERT((boost::is_same<c2::class_type, D>));
|
||||
BOOST_MPL_ASSERT((boost::is_same<c2::base_list, bases<B> >));
|
||||
|
||||
#if defined(BOOST_NO_CXX11_SMART_PTR)
|
||||
|
||||
BOOST_MPL_ASSERT((
|
||||
boost::is_same<c2::held_type, std::auto_ptr<D> >
|
||||
));
|
||||
|
||||
#else
|
||||
|
||||
BOOST_MPL_ASSERT((
|
||||
boost::is_same<c2::held_type, std::unique_ptr<D> >
|
||||
));
|
||||
|
||||
#endif
|
||||
|
||||
BOOST_MPL_ASSERT((boost::is_same<c2::copyable, void>));
|
||||
|
||||
@@ -2,6 +2,7 @@
|
||||
// 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 <math.h>
|
||||
#include <boost/python.hpp>
|
||||
#include <boost/parameter/preprocessor.hpp>
|
||||
#include <boost/parameter/keyword.hpp>
|
||||
|
||||
Reference in New Issue
Block a user