forked from boostorg/endian
Add CMake install support, tests
This commit is contained in:
1 parent
816c7597e3
commit
3a50c15a97
11 files changed
+178
-41
No files matched your search
@@ -13,7 +13,6 @@
|
||||
|
||||
#define BOOST_ENDIAN_DEPRECATED_NAMES
|
||||
#include <boost/endian/endian.hpp>
|
||||
#include <boost/detail/lightweight_main.hpp>
|
||||
#include <boost/core/lightweight_test.hpp>
|
||||
#include <boost/cstdint.hpp>
|
||||
#include <iostream>
|
||||
@@ -181,4 +180,17 @@ int cpp_main(int, char *[])
|
||||
return ::boost::report_errors();
|
||||
}
|
||||
|
||||
int main( int argc, char* argv[] )
|
||||
{
|
||||
try
|
||||
{
|
||||
return cpp_main( argc, argv );
|
||||
}
|
||||
catch( std::exception const & x )
|
||||
{
|
||||
BOOST_ERROR( x.what() );
|
||||
return boost::report_errors();
|
||||
}
|
||||
}
|
||||
|
||||
#include <boost/endian/detail/disable_warnings_pop.hpp>
|
||||
Reference in new issue
Block a user