Skip to content

Commit afa83e8

Browse files
committed
Consistently use constexpr explicit rather than explicit constexpr.
Fixes #119.
1 parent f314930 commit afa83e8

File tree

3 files changed

+10
-10
lines changed

3 files changed

+10
-10
lines changed

source/declarations.tex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -898,7 +898,7 @@
898898
\enterexample
899899
\begin{codeblock}
900900
struct Length {
901-
explicit constexpr Length(int i = 0) : val(i) { }
901+
constexpr explicit Length(int i = 0) : val(i) { }
902902
private:
903903
int val;
904904
};

source/numerics.tex

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -404,8 +404,8 @@
404404
typedef float value_type;
405405

406406
constexpr complex(float re = 0.0f, float im = 0.0f);
407-
explicit constexpr complex(const complex<double>&);
408-
explicit constexpr complex(const complex<long double>&);
407+
constexpr explicit complex(const complex<double>&);
408+
constexpr explicit complex(const complex<long double>&);
409409

410410
constexpr float real() const;
411411
void real(float);
@@ -432,7 +432,7 @@
432432

433433
constexpr complex(double re = 0.0, double im = 0.0);
434434
constexpr complex(const complex<float>&);
435-
explicit constexpr complex(const complex<long double>&);
435+
constexpr explicit complex(const complex<long double>&);
436436

437437
constexpr double real() const;
438438
void real(double);

source/utilities.tex

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1082,9 +1082,9 @@
10821082

10831083
// \ref{tuple.cnstr}, \tcode{tuple} construction
10841084
constexpr tuple();
1085-
explicit constexpr tuple(const Types&...);
1085+
constexpr explicit tuple(const Types&...);
10861086
template <class... UTypes>
1087-
explicit constexpr tuple(UTypes&&...);
1087+
constexpr explicit tuple(UTypes&&...);
10881088

10891089
tuple(const tuple&) = default;
10901090
tuple(tuple&&) = default;
@@ -1174,7 +1174,7 @@
11741174

11751175
\indexlibrary{\idxcode{tuple}!constructor}%
11761176
\begin{itemdecl}
1177-
explicit constexpr tuple(const Types&...);
1177+
constexpr explicit tuple(const Types&...);
11781178
\end{itemdecl}
11791179

11801180
\begin{itemdescr}
@@ -1189,7 +1189,7 @@
11891189
\indexlibrary{\idxcode{tuple}!constructor}%
11901190
\begin{itemdecl}
11911191
template <class... UTypes>
1192-
explicit constexpr tuple(UTypes&&... u);
1192+
constexpr explicit tuple(UTypes&&... u);
11931193
\end{itemdecl}
11941194

11951195
\begin{itemdescr}
@@ -8136,7 +8136,7 @@
81368136
template <class Predicate>
81378137
class unary_negate {
81388138
public:
8139-
explicit constexpr unary_negate(const Predicate& pred);
8139+
constexpr explicit unary_negate(const Predicate& pred);
81408140
constexpr bool operator()(const typename Predicate::argument_type& x) const;
81418141
typedef typename Predicate::argument_type argument_type;
81428142
typedef bool result_type;
@@ -8165,7 +8165,7 @@
81658165
template <class Predicate>
81668166
class binary_negate {
81678167
public:
8168-
explicit constexpr binary_negate(const Predicate& pred);
8168+
constexpr explicit binary_negate(const Predicate& pred);
81698169
constexpr bool operator()(const typename Predicate::first_argument_type& x,
81708170
const typename Predicate::second_argument_type& y) const;
81718171
typedef typename Predicate::first_argument_type first_argument_type;

0 commit comments

Comments
 (0)