Skip to content

Commit 71fa07d

Browse files
committed
[utilities] Use {} rather than = T() to default-construct
piecewise_construct and allocator_arg. Fixes #250.
1 parent bba5cbf commit 71fa07d

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

source/utilities.tex

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@
130130

131131
// \ref{pair.piecewise}, pair piecewise construction
132132
struct piecewise_construct_t { };
133-
constexpr piecewise_construct_t piecewise_construct = piecewise_construct_t();
133+
constexpr piecewise_construct_t piecewise_construct{};
134134
template <class... Types> class tuple; // defined in \tcode{<tuple>}
135135
@
136136
\indexlibrary{\idxcode{index_sequence}}%
@@ -965,7 +965,7 @@
965965
\indexlibrary{\idxcode{piecewise_construct}}%
966966
\begin{itemdecl}
967967
struct piecewise_construct_t { };
968-
constexpr piecewise_construct_t piecewise_construct = piecewise_construct_t();
968+
constexpr piecewise_construct_t piecewise_construct{};
969969
\end{itemdecl}
970970

971971
\pnum
@@ -2983,7 +2983,7 @@
29832983

29842984
// \ref{allocator.tag}, allocator argument tag
29852985
struct allocator_arg_t { };
2986-
constexpr allocator_arg_t allocator_arg = allocator_arg_t();
2986+
constexpr allocator_arg_t allocator_arg{};
29872987

29882988
// \ref{allocator.uses}, \tcode{uses_allocator}
29892989
template <class T, class Alloc> struct uses_allocator;
@@ -3462,7 +3462,7 @@
34623462
\begin{itemdecl}
34633463
namespace std {
34643464
struct allocator_arg_t { };
3465-
constexpr allocator_arg_t allocator_arg = allocator_arg_t();
3465+
constexpr allocator_arg_t allocator_arg{};
34663466
}
34673467
\end{itemdecl}
34683468

0 commit comments

Comments
 (0)