mirror of
https://github.com/boostorg/describe.git
synced 2026-01-19 04:12:07 +00:00
25 lines
544 B
C++
25 lines
544 B
C++
// Copyright 2025 Peter Dimov
|
|
// Distributed under the Boost Software License, Version 1.0.
|
|
// https://www.boost.org/LICENSE_1_0.txt
|
|
|
|
#include <boost/describe/enumerators.hpp>
|
|
#include <boost/describe/enum.hpp>
|
|
#include <boost/config.hpp>
|
|
#include <boost/config/pragma_message.hpp>
|
|
|
|
#if !defined(BOOST_DESCRIBE_CXX20)
|
|
|
|
BOOST_PRAGMA_MESSAGE("Skipping test because BOOST_DESCRIBE_CXX20 isn't defined")
|
|
|
|
#else
|
|
|
|
struct X
|
|
{
|
|
enum E { v1 };
|
|
BOOST_DESCRIBE_NESTED_ENUM(E, v1)
|
|
|
|
using L = boost::describe::describe_enumerators<E>;
|
|
};
|
|
|
|
#endif
|