mirror of
https://github.com/boostorg/config.git
synced 2026-02-17 13:42:17 +00:00
On Linux, GNU's libstdc++, which is the default stdlib for icc and clang, cannot parse the <iomanip> header in version 4.5+ (which thankfully neither compiler advises the use of yet), as it's original C++98-friendly implementation has been replaced with a gnu++0x implementation. <boost/detail/iomanip.hpp> is a portable implementation of <iomanip>, providing boost::detail::setfill, boost::detail::setbase, boost::detail::setw, boost::detail::setprecision, boost::detail::setiosflags and boost::detail::resetiosflags. [SVN r68140]
55 lines
1.8 KiB
C++
55 lines
1.8 KiB
C++
// (C) Copyright John Maddock 2003.
|
|
// Use, modification and distribution are subject to 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)
|
|
|
|
// See http://www.boost.org/libs/config for the most recent version.
|
|
|
|
|
|
#define BOOST_CONFIG_SOURCE
|
|
|
|
#include "link_test.hpp"
|
|
#include <iostream>
|
|
#include <boost/detail/iomanip.hpp>
|
|
|
|
bool BOOST_CONFIG_DECL check_options(
|
|
bool m_dyn_link,
|
|
bool m_dyn_rtl,
|
|
bool m_has_threads,
|
|
bool m_debug,
|
|
bool m_stlp_debug)
|
|
{
|
|
if(m_dyn_link != dyn_link)
|
|
{
|
|
std::cout << "Dynamic link options do not match" << std::endl;
|
|
std::cout << "Application setting = " << m_dyn_link << " Library setting = " << dyn_link << std::endl;
|
|
return false;
|
|
}
|
|
if(m_dyn_rtl != dyn_rtl)
|
|
{
|
|
std::cout << "Runtime library options do not match" << std::endl;
|
|
std::cout << "Application setting = " << m_dyn_rtl << " Library setting = " << dyn_rtl << std::endl;
|
|
return false;
|
|
}
|
|
if(m_has_threads != has_threads)
|
|
{
|
|
std::cout << "Threading options do not match" << std::endl;
|
|
std::cout << "Application setting = " << m_has_threads << " Library setting = " << has_threads << std::endl;
|
|
return false;
|
|
}
|
|
if(m_debug != debug)
|
|
{
|
|
std::cout << "Debug options do not match" << std::endl;
|
|
std::cout << "Application setting = " << m_debug << " Library setting = " << debug << std::endl;
|
|
return false;
|
|
}
|
|
if(m_stlp_debug != stl_debug)
|
|
{
|
|
std::cout << "STLPort debug options do not match" << std::endl;
|
|
std::cout << "Application setting = " << m_stlp_debug << " Library setting = " << stl_debug << std::endl;
|
|
return false;
|
|
}
|
|
return true;
|
|
}
|
|
|