/* mpl_long_long.cpp source file * * Copyright 2004 Cromwell D. Enage. 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) */ /* * Defines the BOOST_HAS_LONG_LONG macro. */ #include /* * Defines the boost::mpl::integral_c struct template. */ #include /* * Defines the boost::mpl::times struct template. */ #include /* * Defines the MPL_TEST_CASE and MPL_ASSERT* macros. * Also pulls in the boost::mpl namespace. */ #include #ifndef BOOST_HAS_LONG_LONG #define SAMPLE_TYPE long #else #define SAMPLE_TYPE long long #endif MPL_TEST_CASE() { typedef times,integral_c >::type secret_of_life; MPL_ASSERT_RELATION(secret_of_life::value, ==, 42); }