namespace boost {
namespace atomics {
namespace detail {

template<typename T, bool IsInt = boost::is_integral<T>::value>
struct classify
{
    typedef void type;
};

template<typename T>
struct classify<T, true> {typedef int type;};

template<typename T>
struct classify<T*, false> {typedef void* type;};

template<typename T>
struct storage_size_of
{
    enum _
    {
        size = sizeof(T),
        value = (size == 3 ? 4 : (size == 5 || size == 6 || size == 7 ? 8 : size))
    };
};

}}}

#endif
