Add test that checks for duplicate category instances

This commit is contained in:
Peter Dimov
2018-01-14 05:10:44 +02:00
parent f69e195aaf
commit c3da8661dc
4 changed files with 85 additions and 0 deletions

View File

@@ -0,0 +1,22 @@
// Copyright 2018 Peter Dimov.
// Distributed under the Boost Software License, Version 1.0.
#include <boost/system/error_code.hpp>
using namespace boost::system;
namespace lib2
{
error_code get_system_code()
{
return error_code( 0, system_category() );
}
error_code get_generic_code()
{
return error_code( 0, generic_category() );
}
} // namespace lib2