mirror of
https://github.com/boostorg/histogram.git
synced 2026-01-29 19:42:12 +00:00
fix ci
This commit is contained in:
@@ -33,6 +33,8 @@ class copyable_atomic : public std::atomic<T> {
|
||||
public:
|
||||
using std::atomic<T>::atomic;
|
||||
|
||||
copyable_atomic() = default;
|
||||
|
||||
// this is potentially not thread-safe
|
||||
copyable_atomic(const copyable_atomic& rhs) { this->operator=(rhs); }
|
||||
|
||||
|
||||
@@ -176,9 +176,10 @@ struct map_augmentation : T {
|
||||
|
||||
value_type& operator[](std::size_t i) { return T::operator[](i); }
|
||||
|
||||
value_type operator[](std::size_t i) const {
|
||||
const value_type& operator[](std::size_t i) const {
|
||||
auto it = this->find(i);
|
||||
return it == this->end() ? value_type() : it->second;
|
||||
static auto null = value_type();
|
||||
return it == this->end() ? null : it->second;
|
||||
}
|
||||
|
||||
template <typename U>
|
||||
|
||||
Reference in New Issue
Block a user