mirror of
https://github.com/boostorg/system.git
synced 2025-11-16 15:39:24 +01:00
Add test that checks for duplicate category instances
This commit is contained in:
22
test/single_instance_1.cpp
Normal file
22
test/single_instance_1.cpp
Normal 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 lib1
|
||||
{
|
||||
|
||||
error_code get_system_code()
|
||||
{
|
||||
return error_code( 0, system_category() );
|
||||
}
|
||||
|
||||
error_code get_generic_code()
|
||||
{
|
||||
return error_code( 0, generic_category() );
|
||||
}
|
||||
|
||||
} // namespace lib1
|
||||
Reference in New Issue
Block a user