mirror of
https://github.com/boostorg/describe.git
synced 2026-01-23 05:22:18 +00:00
Compare commits
1 Commits
feature/ha
...
boost-1.81
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
311cab7565 |
@@ -8,6 +8,15 @@ https://www.boost.org/LICENSE_1_0.txt
|
||||
# Revision History
|
||||
:idprefix:
|
||||
|
||||
## Changes in Boost 1.81.0
|
||||
|
||||
* To allow the inclusion of `enumerators.hpp`, `bases.hpp`, and `members.hpp`
|
||||
when the option `-pedantic` is used, the invocation of `BOOST_DESCRIBE_ENUM`
|
||||
has been moved from `modifiers.hpp` into a separate header,
|
||||
`modifier_description.hpp`. As a consequence, `modifiers.hpp` no longer
|
||||
includes `enum.hpp`. Code that has been relying on this implicit inclusion
|
||||
may fail, and will need to be fixed to include `enum.hpp`.
|
||||
|
||||
## Changes in Boost 1.79.0
|
||||
|
||||
* Enabled unions in `BOOST_DESCRIBE_STRUCT` and updated examples to check `std::is_union<T>`.
|
||||
|
||||
@@ -163,6 +163,13 @@ calling `boost::hash_combine` on each.
|
||||
The overload is defined in namespace `app` in order to apply
|
||||
to all annotated classes also defined in `app`.
|
||||
|
||||
NOTE: Since release 1.81.0, Boost.ContainerHash provides its
|
||||
own, built-in, support for described classes, by having an
|
||||
overload of `boost::hash_value` very similar to the one given
|
||||
below. Consequently, when using Boost 1.81.0 or later, you
|
||||
don't need the below `hash_value` function, as it will cause
|
||||
an ambiguity.
|
||||
|
||||
[source]
|
||||
----
|
||||
include::../../example/hash_value.cpp[lines=5..-1]
|
||||
|
||||
@@ -210,7 +210,7 @@ enum modifiers
|
||||
mod_function = 32,
|
||||
mod_any_member = 64,
|
||||
mod_inherited = 128,
|
||||
mod_hidden = 256,
|
||||
mod_hidden = 256
|
||||
};
|
||||
|
||||
constexpr modifiers mod_any_access = static_cast<modifiers>( mod_public | mod_protected | mod_private );
|
||||
@@ -234,6 +234,12 @@ following flags:
|
||||
* `mod_inherited` - includes members of base classes
|
||||
* `mod_hidden` - includes hidden inherited members
|
||||
|
||||
## <boost/describe/{zwsp}modifier_description.hpp>
|
||||
|
||||
The header `modifier_description.hpp` includes `modifiers.hpp` and invokes
|
||||
`BOOST_DESCRIBE_ENUM` on `modifiers`, allowing `describe_enumerators<modifiers>`
|
||||
to work.
|
||||
|
||||
## <boost/describe/bases.hpp>
|
||||
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user