public inbox for libstdc++-cvs@sourceware.org help / color / mirror / Atom feed
From: Edward Smith-Rowland <emsr@gcc.gnu.org> To: gcc-cvs@gcc.gnu.org, libstdc++-cvs@gcc.gnu.org Subject: [gcc(refs/users/emsr/heads/lib_calendar)] The constants are inline constexpr now. Date: Tue, 14 Apr 2020 16:18:58 +0000 (GMT) [thread overview] Message-ID: <20200414161858.45880385DC14@sourceware.org> (raw) 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
next reply other threads:[~2020-04-14 16:18 UTC|newest] Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top 2020-04-14 16:18 Edward Smith-Rowland [this message] 2021-01-28 22:13 Edward Smith-Rowland
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20200414161858.45880385DC14@sourceware.org \ --to=emsr@gcc.gnu.org \ --cc=gcc-cvs@gcc.gnu.org \ --cc=libstdc++-cvs@gcc.gnu.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
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).