mirror of
https://github.com/ETLCPP/etl.git
synced 2026-06-22 11:56:05 +08:00
Make typed_storage constructor constexpr (#1291)
* Remove AppVeyor build status badge Removed AppVeyor build status badge from README. * Update README.md * Update CONTRIBUTING.md Updated the instructions for contributing. * Fix for issue 1276 "Data corruption in the etl::bip_buffer_spsc_atomic" (#1277) * Reproduce data corruption bug in the `etl::bip_buffer_spsc_atomic`. * Fix data corruption bug in the `etl::bip_buffer_spsc_atomic`. * Make typed_storage constructor constexpr --------- Co-authored-by: John Wellbelove <jwellbelove@users.noreply.github.com> Co-authored-by: Sergei <sergej.shirokov@gmail.com>
This commit is contained in:
parent
353c36c393
commit
75eb6680d6
@ -367,7 +367,7 @@ namespace etl
|
||||
//***************************************************************************
|
||||
// Default constructor
|
||||
//***************************************************************************
|
||||
typed_storage() ETL_NOEXCEPT
|
||||
ETL_CONSTEXPR typed_storage() ETL_NOEXCEPT
|
||||
: valid(false)
|
||||
{
|
||||
}
|
||||
@ -567,7 +567,7 @@ namespace etl
|
||||
//*******************************
|
||||
union union_type
|
||||
{
|
||||
union_type() ETL_NOEXCEPT
|
||||
ETL_CONSTEXPR union_type() ETL_NOEXCEPT
|
||||
: dummy()
|
||||
{
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user