2
0
mirror of https://github.com/boostorg/python.git synced 2026-01-28 19:32:14 +00:00
[SVN r16442]
This commit is contained in:
Dave Abrahams
2002-11-27 14:23:07 +00:00
parent 0ad3bfd0ab
commit c4df3c6562

View File

@@ -15,6 +15,7 @@
# include <boost/python/object/find_instance.hpp>
# include <boost/python/object/make_instance.hpp>
# include <boost/python/object/instance.hpp>
# include <boost/python/detail/force_instantiate.hpp>
# include <boost/type.hpp>
# include <boost/mpl/if.hpp>
# include <boost/type_traits/same_traits.hpp>
@@ -28,21 +29,6 @@ namespace detail
{
// A helpful compile-time assertion which gives a reasonable error
// message if T can't be default-constructed.
template <class T, class Held>
class assert_default_constructible
{
static int specify_init_arguments_or_no_init_for_class_(T const&);
public:
assert_default_constructible()
{
force_instantiate(
sizeof(
specify_init_arguments_or_no_init_for_class_(T())
));
}
};
template <class T>
static int specify_init_arguments_or_no_init_for_class_(T const&);