public inbox for libstdc++-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc(refs/users/emsr/heads/lib_calendar)] The constants are inline constexpr now.
@ 2021-01-28 22:13 Edward Smith-Rowland
0 siblings, 0 replies; 2+ messages in thread
From: Edward Smith-Rowland @ 2021-01-28 22:13 UTC (permalink / raw)
To: gcc-cvs, libstdc++-cvs
https://gcc.gnu.org/g:715d77bc883a9212053f5037b8f6e191cf9583ff
commit 715d77bc883a9212053f5037b8f6e191cf9583ff
Author: Ed Smith-Rowland <3dw4rd@verizon.net>
Date: Tue Apr 14 12:18:32 2020 -0400
The constants are inline constexpr now.
Diff:
---
libstdc++-v3/include/std/chrono | 40 ++++++++++++++++++++--------------------
1 file changed, 20 insertions(+), 20 deletions(-)
diff --git a/libstdc++-v3/include/std/chrono b/libstdc++-v3/include/std/chrono
index f36704b913d..e9f140ccab4 100644
--- a/libstdc++-v3/include/std/chrono
+++ b/libstdc++-v3/include/std/chrono
@@ -799,7 +799,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
explicit last_spec() = default;
};
- constexpr last_spec last{};
+ inline constexpr last_spec last{};
const tzdb& get_tzdb();
tzdb_list& get_tzdb_list();
@@ -1677,18 +1677,18 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
{ return 1 <= this->_M_m && this->_M_m <= 12; }
};
- constexpr chrono::month January{1};
- constexpr chrono::month February{2};
- constexpr chrono::month March{3};
- constexpr chrono::month April{4};
- constexpr chrono::month May{5};
- constexpr chrono::month June{6};
- constexpr chrono::month July{7};
- constexpr chrono::month August{8};
- constexpr chrono::month September{9};
- constexpr chrono::month October{10};
- constexpr chrono::month November{11};
- constexpr chrono::month December{12};
+ inline constexpr chrono::month January{1};
+ inline constexpr chrono::month February{2};
+ inline constexpr chrono::month March{3};
+ inline constexpr chrono::month April{4};
+ inline constexpr chrono::month May{5};
+ inline constexpr chrono::month June{6};
+ inline constexpr chrono::month July{7};
+ inline constexpr chrono::month August{8};
+ inline constexpr chrono::month September{9};
+ inline constexpr chrono::month October{10};
+ inline constexpr chrono::month November{11};
+ inline constexpr chrono::month December{12};
constexpr bool
operator==(const month& __x, const month& __y) noexcept
@@ -1993,13 +1993,13 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
operator[](last_spec) const noexcept;
};
- constexpr chrono::weekday Sunday{0};
- constexpr chrono::weekday Monday{1};
- constexpr chrono::weekday Tuesday{2};
- constexpr chrono::weekday Wednesday{3};
- constexpr chrono::weekday Thursday{4};
- constexpr chrono::weekday Friday{5};
- constexpr chrono::weekday Saturday{6};
+ inline constexpr chrono::weekday Sunday{0};
+ inline constexpr chrono::weekday Monday{1};
+ inline constexpr chrono::weekday Tuesday{2};
+ inline constexpr chrono::weekday Wednesday{3};
+ inline constexpr chrono::weekday Thursday{4};
+ inline constexpr chrono::weekday Friday{5};
+ inline constexpr chrono::weekday Saturday{6};
constexpr bool
operator==(const weekday& __x, const weekday& __y) noexcept
^ permalink raw reply [flat|nested] 2+ messages in thread
* [gcc(refs/users/emsr/heads/lib_calendar)] The constants are inline constexpr now.
@ 2020-04-14 16:18 Edward Smith-Rowland
0 siblings, 0 replies; 2+ messages in thread
From: Edward Smith-Rowland @ 2020-04-14 16:18 UTC (permalink / raw)
To: gcc-cvs, libstdc++-cvs
https://gcc.gnu.org/g:d5ecc228c4a778f0d49d56c6237545253967ce1e
commit d5ecc228c4a778f0d49d56c6237545253967ce1e
Author: Ed Smith-Rowland <3dw4rd@verizon.net>
Date: Tue Apr 14 12:18:32 2020 -0400
The constants are inline constexpr now.
Diff:
---
libstdc++-v3/include/std/chrono | 40 ++++++++++++++++++++--------------------
1 file changed, 20 insertions(+), 20 deletions(-)
diff --git a/libstdc++-v3/include/std/chrono b/libstdc++-v3/include/std/chrono
index 2d151a6dda5..1872f35e250 100644
--- a/libstdc++-v3/include/std/chrono
+++ b/libstdc++-v3/include/std/chrono
@@ -784,7 +784,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
explicit last_spec() = default;
};
- constexpr last_spec last{};
+ inline constexpr last_spec last{};
const tzdb& get_tzdb();
tzdb_list& get_tzdb_list();
@@ -1653,18 +1653,18 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
{ return 1 <= this->_M_m && this->_M_m <= 12; }
};
- constexpr chrono::month January{1};
- constexpr chrono::month February{2};
- constexpr chrono::month March{3};
- constexpr chrono::month April{4};
- constexpr chrono::month May{5};
- constexpr chrono::month June{6};
- constexpr chrono::month July{7};
- constexpr chrono::month August{8};
- constexpr chrono::month September{9};
- constexpr chrono::month October{10};
- constexpr chrono::month November{11};
- constexpr chrono::month December{12};
+ inline constexpr chrono::month January{1};
+ inline constexpr chrono::month February{2};
+ inline constexpr chrono::month March{3};
+ inline constexpr chrono::month April{4};
+ inline constexpr chrono::month May{5};
+ inline constexpr chrono::month June{6};
+ inline constexpr chrono::month July{7};
+ inline constexpr chrono::month August{8};
+ inline constexpr chrono::month September{9};
+ inline constexpr chrono::month October{10};
+ inline constexpr chrono::month November{11};
+ inline constexpr chrono::month December{12};
constexpr bool
operator==(const month& __x, const month& __y) noexcept
@@ -1969,13 +1969,13 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
operator[](last_spec) const noexcept;
};
- constexpr chrono::weekday Sunday{0};
- constexpr chrono::weekday Monday{1};
- constexpr chrono::weekday Tuesday{2};
- constexpr chrono::weekday Wednesday{3};
- constexpr chrono::weekday Thursday{4};
- constexpr chrono::weekday Friday{5};
- constexpr chrono::weekday Saturday{6};
+ inline constexpr chrono::weekday Sunday{0};
+ inline constexpr chrono::weekday Monday{1};
+ inline constexpr chrono::weekday Tuesday{2};
+ inline constexpr chrono::weekday Wednesday{3};
+ inline constexpr chrono::weekday Thursday{4};
+ inline constexpr chrono::weekday Friday{5};
+ inline constexpr chrono::weekday Saturday{6};
constexpr bool
operator==(const weekday& __x, const weekday& __y) noexcept
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2021-01-28 22:13 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-01-28 22:13 [gcc(refs/users/emsr/heads/lib_calendar)] The constants are inline constexpr now Edward Smith-Rowland
-- strict thread matches above, loose matches on Subject: below --
2020-04-14 16:18 Edward Smith-Rowland
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).