2
0
mirror of https://github.com/boostorg/atomic.git synced 2026-01-19 04:02:09 +00:00
Andrey Semashev 3b4c10be1f Suppress default constructor of the target type in bitwise_cast.
Since the default constructor may be non-trivial and throwing, we have
to suppress it in the memcpy-based implementation of bitwise_cast. Since
the type must be trivially copyable, initializing the object using memcpy
is a valid way of creating it, so there is no UB.

This is necessary for all atomic operations that involve bitwise_cast
internally to remain noexcept, as specified in the C++ standard.

Also removed remove_cv shim since we now require type_traits and the
shim is no longer used.
2025-06-08 15:58:24 +03:00
2022-04-18 15:13:25 +03:00

Boost.Atomic

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 and later.

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

Build status

Branch GitHub Actions AppVeyor Test Matrix Dependencies
master GitHub Actions AppVeyor Tests Dependencies
develop GitHub Actions AppVeyor Tests Dependencies

License

Distributed under the Boost Software License, Version 1.0.

Description
Mirrored via gitea-mirror
Readme 2.3 MiB
Languages
C++ 99.3%
CMake 0.7%