using boost::ref;
using boost::cref;
using boost::reference_wrapper;
-
+
// now also import the _1, _2 placeholders from the global namespace
// into the current one as suggested above
using ::_1;
using boost::make_tuple;
using boost::get;
- // boost::tuples::length has been renamed
- // by the standard to std::tuple_size
+ // boost::tuples::length has been renamed
+ // by the standard to std::tuple_size
template <typename T>
- struct tuple_size
+ struct tuple_size
{
- static const std::size_t value = boost::tuples::length<T>::value;
+ static const std::size_t value = boost::tuples::length<T>::value;
};
- // similarly, boost::tuples::element has
- // been renamed by the standard to
- // std::tuple_element
+ // similarly, boost::tuples::element has
+ // been renamed by the standard to
+ // std::tuple_element
template <int N, typename T>
struct tuple_element
{
- typedef typename boost::tuples::element<N,T>::type type;
+ typedef typename boost::tuples::element<N,T>::type type;
};
}
DEAL_II_NAMESPACE_CLOSE
DEAL_II_NAMESPACE_OPEN
namespace std_cxx11
{
- // TODO: could fill up with more types from
- // C++11 type traits
+ // TODO: could fill up with more types from
+ // C++11 type traits
using std::is_pod;
using std::is_standard_layout;
using std::is_trivial;
{
using boost::is_pod;
- // boost does not have is_standard_layout and
- // is_trivial, but those are both a subset of
- // is_pod
+ // boost does not have is_standard_layout and
+ // is_trivial, but those are both a subset of
+ // is_pod
template <typename T>
struct is_standard_layout
{
struct is_trivial
{
static const bool value = boost::has_trivial_copy<T>::value &&
- boost::has_trivial_assign<T>::value &&
- boost::has_trivial_constructor<T>::value &&
- boost::has_trivial_destructor<T>::value;
+ boost::has_trivial_assign<T>::value &&
+ boost::has_trivial_constructor<T>::value &&
+ boost::has_trivial_destructor<T>::value;
};
}
DEAL_II_NAMESPACE_CLOSE