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
-1
@@ -20,7 +20,6 @@
|
||||
|
||||
#include <boost/endian/arithmetic.hpp>
|
||||
#include <boost/cstdint.hpp>
|
||||
#include <boost/detail/lightweight_main.hpp>
|
||||
|
||||
#include <iostream>
|
||||
#include <limits>
|
||||
@@ -838,3 +837,16 @@ int cpp_main( int argc, char * argv[] )
|
||||
|
||||
return err_count ? 1 : 0;
|
||||
} // main
|
||||
|
||||
int main( int argc, char* argv[] )
|
||||
{
|
||||
try
|
||||
{
|
||||
return cpp_main( argc, argv );
|
||||
}
|
||||
catch( std::exception const & x )
|
||||
{
|
||||
std::cout << "Exception: " << x.what() << std::endl;
|
||||
return 1;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user