Make Boost.System header-only

This commit is contained in:
Peter Dimov
2018-09-16 03:04:19 +03:00
parent 053972643d
commit 2fa0a00583
12 changed files with 680 additions and 499 deletions
+2 -2
View File
@@ -19,7 +19,7 @@
//--------------------------------------------------------------------------------------//
#include <boost/system/system_error.hpp>
#include <boost/system/config.hpp>
#include <iostream>
namespace boost
@@ -52,4 +52,4 @@ int main()
std::cout << " error: failed to catch boost::system::system_error\n";
return 1;
}
}
+1 -11
View File
@@ -123,17 +123,7 @@ int main( int, char ** )
BOOST_TEST( generic_category() != system_category() );
BOOST_TEST( system_category() != generic_category() );
if ( std::less<const error_category*>()( &generic_category(), &system_category() ) )
{
BOOST_TEST( generic_category() < system_category() );
BOOST_TEST( !(system_category() < generic_category()) );
}
else
{
BOOST_TEST( system_category() < generic_category() );
BOOST_TEST( !(generic_category() < system_category()) );
}
BOOST_TEST_NE( generic_category() < system_category(), system_category() < generic_category() );
error_code ec;
error_condition econd;
+5 -2
View File
@@ -11,10 +11,14 @@
// Avoid spurious VC++ warnings
# define _CRT_SECURE_NO_WARNINGS
#include <boost/system/error_code.hpp>
#include <boost/config.hpp>
#include <boost/config/pragma_message.hpp>
#include <iostream>
#if defined(BOOST_NO_CXX11_HDR_SYSTEM_ERROR)
#if !defined(BOOST_SYSTEM_HAS_SYSTEM_ERROR)
BOOST_PRAGMA_MESSAGE( "BOOST_SYSTEM_HAS_SYSTEM_ERROR not defined, test will be skipped" )
int main()
{
@@ -25,7 +29,6 @@ int main()
#else
#include <boost/system/error_code.hpp>
#include <boost/core/lightweight_test.hpp>
#include <system_error>
#include <cerrno>
+5 -2
View File
@@ -11,10 +11,14 @@
// Avoid spurious VC++ warnings
# define _CRT_SECURE_NO_WARNINGS
#include <boost/system/error_code.hpp>
#include <boost/config.hpp>
#include <boost/config/pragma_message.hpp>
#include <iostream>
#if defined(BOOST_NO_CXX11_HDR_SYSTEM_ERROR)
#if !defined(BOOST_SYSTEM_HAS_SYSTEM_ERROR)
BOOST_PRAGMA_MESSAGE( "BOOST_SYSTEM_HAS_SYSTEM_ERROR not defined, test will be skipped" )
int main()
{
@@ -25,7 +29,6 @@ int main()
#else
#include <boost/system/error_code.hpp>
#include <boost/core/lightweight_test.hpp>
#include <system_error>
#include <cerrno>
+1
View File
@@ -18,6 +18,7 @@
#define BOOST_SYSTEM_SOURCE
#include <boost/system/system_error.hpp>
#include <boost/system/config.hpp>
namespace boost
{