#include <iostream>
#include <iomanip>
-#if defined(BOOST_INTEL)
+#if defined(__INTEL_COMPILER)
# pragma warning(disable:239)
# pragma warning(disable:264)
#endif
//
void expected_results();
-typedef std::pair<boost::regex, std::pair<boost::uintmax_t, boost::uintmax_t> > expected_data_type;
+typedef std::pair<boost::regex, std::pair<std::uintmax_t, std::uintmax_t> > expected_data_type;
typedef std::list<expected_data_type> list_type;
inline list_type&
const char* type_name,
const char* test_name,
const char* group_name,
- boost::uintmax_t max_peek_error,
- boost::uintmax_t max_mean_error)
+ std::uintmax_t max_peek_error,
+ std::uintmax_t max_mean_error)
{
std::string re("(?:");
re += compiler;
return result;
}
-inline const std::pair<boost::uintmax_t, boost::uintmax_t>&
+inline const std::pair<std::uintmax_t, std::uintmax_t>&
get_max_errors(const char* type_name, const char* test_name, const char* group_name)
{
- static const std::pair<boost::uintmax_t, boost::uintmax_t> defaults(1, 1);
+ static const std::pair<std::uintmax_t, std::uintmax_t> defaults(1, 1);
std::string name = build_test_name(type_name, test_name, group_name);
list_type& l = get_expected_data();
list_type::const_iterator a(l.begin()), b(l.end());
const char* test_name,
const char* group_name)
{
-#ifdef BOOST_MSVC
+#ifdef _MSC_VER
#pragma warning(push)
#pragma warning(disable:4127)
#endif
//
// Now verify that the results are within our expected bounds:
//
- std::pair<boost::uintmax_t, boost::uintmax_t> const& bounds = get_max_errors(type_name, test_name, group_name);
+ std::pair<std::uintmax_t, std::uintmax_t> const& bounds = get_max_errors(type_name, test_name, group_name);
if(bounds.first < max_error_found)
{
std::cerr << "Peak error greater than expected value of " << bounds.first << std::endl;
BOOST_CHECK(bounds.second >= mean_error_found);
}
std::cout << std::endl;
-#ifdef BOOST_MSVC
+#ifdef _MSC_VER
#pragma warning(pop)
#endif
}