Skip to content
Permalink
Branch: master
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
24 lines (20 sloc) 683 Bytes
//
// Part of Metta OS. Check http://atta-metta.net for latest version.
//
// Copyright 2007 - 2014, Stanislav Karchebnyy <berkus@atta-metta.net>
//
// Distributed under the Boost Software License, Version 1.0.
// (See file LICENSE_1_0.txt or a copy at http://www.boost.org/LICENSE_1_0.txt)
//
#include <boost/endian/arithmetic.hpp>
// @fixme: use boost/endian/buffer.hpp for fusionary i/o
template <typename T>
struct is_endian
{
static constexpr bool const value = false;
};
template <boost::endian::order O, typename T, std::size_t N, boost::endian::align A>
struct is_endian<boost::endian::endian_arithmetic<O, T, N, A>>
{
static constexpr bool const value = true;
};
You can’t perform that action at this time.