Skip to content

Commit 618b4e5

Browse files
Dawn Perchikzygoloid
authored andcommitted
LWG3045 atomic<floating-point> doesn't have value_type or difference_type
1 parent df81d7a commit 618b4e5

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

source/atomics.tex

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1146,6 +1146,8 @@
11461146
\begin{codeblock}
11471147
namespace std {
11481148
template<> struct atomic<@\placeholder{floating-point}@> {
1149+
using value_type = @\placeholdernc{floating-point}@;
1150+
using difference_type = value_type;
11491151
static constexpr bool is_always_lock_free = @\impdefx{whether a given \tcode{atomic} type's operations are always lock free}@;
11501152
bool is_lock_free() const volatile noexcept;
11511153
bool is_lock_free() const noexcept;

0 commit comments

Comments
 (0)