Skip to content

Commit 3e80cd4

Browse files
committed
[complex.special] Reorder defaulted complex copy constructor to
emphasize relationship between it and the converting constructors.
1 parent d60ec60 commit 3e80cd4

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

source/numerics.tex

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -437,8 +437,8 @@
437437
public:
438438
using value_type = float;
439439

440-
constexpr complex(const complex&) = default;
441440
constexpr complex(float re = 0.0f, float im = 0.0f);
441+
constexpr complex(const complex<float>&) = default;
442442
constexpr explicit complex(const complex<double>&);
443443
constexpr explicit complex(const complex<long double>&);
444444

@@ -465,9 +465,9 @@
465465
public:
466466
using value_type = double;
467467

468-
constexpr complex(const complex&) = default;
469468
constexpr complex(double re = 0.0, double im = 0.0);
470469
constexpr complex(const complex<float>&);
470+
constexpr complex(const complex<double>&) = default;
471471
constexpr explicit complex(const complex<long double>&);
472472

473473
constexpr double real() const;
@@ -493,10 +493,10 @@
493493
public:
494494
using value_type = long double;
495495

496-
constexpr complex(const complex&) = default;
497496
constexpr complex(long double re = 0.0L, long double im = 0.0L);
498497
constexpr complex(const complex<float>&);
499498
constexpr complex(const complex<double>&);
499+
constexpr complex(const complex<long double>&) = default;
500500

501501
constexpr long double real() const;
502502
constexpr void real(long double);

0 commit comments

Comments
 (0)