mirror of
https://github.com/boostorg/atomic.git
synced 2026-02-03 08:42:08 +00:00
c22d7f5bdabf87e7a7200e193ffd18914a3fcf13
This commit changes how storage alignment is enforced and ensures that the storage is sufficiently aligned for both atomic operations and direct access to the stored value. This allowed to implement the new value() accessor, which returns a reference to the stored value. This is unlike the previously available storage() accessor, which returns a reference to storage_type and requires users to cast the reference to value_type, which is potentially unsafe. The public storage() accessor is now deprecated in favor of value() and storage_type - in favor of value_type. The deprecation warnings can be disabled by defining BOOST_ATOMIC_SILENCE_STORAGE_DEPRECATION.
Boost.Atomic, part of collection of the Boost C++ Libraries, implements atomic operations for various CPU architectures, reflecting and extending the standard interface defined in C++11.
Directories
- build - Boost.Atomic build scripts
- doc - QuickBook documentation sources
- include - Interface headers of Boost.Atomic
- src - Compilable source code of Boost.Atomic
- test - Boost.Atomic unit tests
More information
- Documentation
- Report bugs. Be sure to mention Boost version, platform and compiler you're using. A small compilable code sample to reproduce the problem is always good as well.
- Submit your patches as pull requests against develop branch. Note that by submitting patches you agree to license your modifications under the Boost Software License, Version 1.0.
Build status
License
Distributed under the Boost Software License, Version 1.0.
Description
Languages
C++
99.3%
CMake
0.7%
