1 | // Copyright 2020 Peter Dimov |
---|---|
2 | // Distributed under the Boost Software License, Version 1.0 |
3 | // http://www.boost.org/LICENSE_1_0.txt |
4 | |
5 | #include <boost/system/generic_category.hpp> |
6 | #include <boost/core/lightweight_test.hpp> |
7 | |
8 | // Tests whether generic_category() is functional when only |
9 | // generic_category.hpp is included |
10 | |
11 | namespace sys = boost::system; |
12 | |
13 | int main() |
14 | { |
15 | sys::error_category const & cat = sys::generic_category(); |
16 | |
17 | BOOST_TEST_CSTR_EQ( cat.name(), "generic"); |
18 | |
19 | return boost::report_errors(); |
20 | } |
21 |