Files
boost_mpl/include/boost/mpl/math/rational_c.hpp
T
2004-07-26 00:32:12 +00:00

39 lines
1015 B
C++

//-----------------------------------------------------------------------------
// boost/mpl/rational_c.hpp header file
// See http://www.boost.org for updates, documentation, and revision history.
//-----------------------------------------------------------------------------
//
// Copyright (c) 2000-02
// Aleksey Gurtovoy
//
// Distributed under the Boost Software License, Version 1.0. (See
// accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt)
#ifndef BOOST_MPL_RATIONAL_C_HPP_INCLUDED
#define BOOST_MPL_RATIONAL_C_HPP_INCLUDED
#include "boost/config.hpp"
namespace boost {
namespace mpl {
template<
typename IntegerType
, IntegerType N
, IntegerType D = 1
>
struct rational_c
{
BOOST_STATIC_CONSTANT(IntegerType, numerator = N);
BOOST_STATIC_CONSTANT(IntegerType, denominator = D);
typedef rational_c<IntegerType,N,D> type;
rational_c() {}
};
} // namespace mpl
} // namespace boost
#endif // BOOST_MPL_RATIONAL_C_HPP_INCLUDED