Commit 820deda
date: Resolve literal white-space deprecation warnings
[Why]
If compiled with clang, the compiler complains:
> include/gul14/date.h:912:41: warning: identifier '_d' preceded by whitespace in a literal operator declaration is deprecated [-Wdeprecated-literal-operator]
> 912 | constexpr gul14::date::day operator "" _d(unsigned long long d) noexcept;
> | ~~~~~~~~~~~~^~
> | operator""_d
> include/gul14/date.h:913:41: warning: identifier '_y' preceded by whitespace in a literal operator declaration is deprecated [-Wdeprecated-literal-operator]
> 913 | constexpr gul14::date::year operator "" _y(unsigned long long y) noexcept;
> | ~~~~~~~~~~~~^~
> | operator""_y
> include/gul14/date.h:1813:13: warning: identifier '_d' preceded by whitespace in a literal operator declaration is deprecated [-Wdeprecated-literal-operator]
> 1813 | operator "" _d(unsigned long long d) noexcept
> | ~~~~~~~~~~~~^~
> | operator""_d
> include/gul14/date.h:1820:13: warning: identifier '_y' preceded by whitespace in a literal operator declaration is deprecated [-Wdeprecated-literal-operator]
> 1820 | operator "" _y(unsigned long long y) noexcept
> | ~~~~~~~~~~~~^~
> | operator""_y
Signed-off-by: Soeren Grunewald <soeren.grunewald@desy.de>1 parent 470d735 commit 820deda
1 file changed
+4
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
908 | 908 | | |
909 | 909 | | |
910 | 910 | | |
911 | | - | |
912 | | - | |
| 911 | + | |
| 912 | + | |
913 | 913 | | |
914 | 914 | | |
915 | 915 | | |
| |||
1809 | 1809 | | |
1810 | 1810 | | |
1811 | 1811 | | |
1812 | | - | |
| 1812 | + | |
1813 | 1813 | | |
1814 | 1814 | | |
1815 | 1815 | | |
1816 | 1816 | | |
1817 | 1817 | | |
1818 | 1818 | | |
1819 | | - | |
| 1819 | + | |
1820 | 1820 | | |
1821 | 1821 | | |
1822 | 1822 | | |
| |||
0 commit comments