Chris@16: Chris@16: // (C) Copyright Matthias Troyerk 2006. Chris@16: // Use, modification and distribution are subject to the Boost Software License, Chris@16: // Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at Chris@16: // http://www.boost.org/LICENSE_1_0.txt). Chris@16: // Chris@16: // See http://www.boost.org/libs/type_traits for most recent version including documentation. Chris@16: Chris@16: #ifndef BOOST_DETAIL_HAS_DEFAULT_CONSTRUCTOR_HPP_INCLUDED Chris@16: #define BOOST_DETAIL_HAS_DEFAULT_CONSTRUCTOR_HPP_INCLUDED Chris@16: Chris@16: #include Chris@16: Chris@16: namespace boost { namespace detail { Chris@16: Chris@16: /// type trait to check for a default constructor Chris@16: /// Chris@16: /// The default implementation just checks for a trivial constructor. Chris@16: /// Using some compiler magic it might be possible to provide a better default Chris@16: Chris@16: template Chris@16: struct has_default_constructor Chris@16: : public has_trivial_constructor Chris@16: {}; Chris@16: Chris@16: } } // namespace boost::detail Chris@16: Chris@16: Chris@16: #endif // BOOST_DETAIL_HAS_DEFAULT_CONSTRUCTOR_HPP_INCLUDED