Files
scylladb/core
Asias He 88e7dcfa86 Remove redundant const in static constexpr const
From http://en.cppreference.com/w/cpp/language/constexpr:

   A constexpr specifier used in an object declaration implies const.

However, We can not change from
   static constexpr const char* TIME_FORMAT = "%a %b %d %I:%M:%S %Z %Y";
to
   static constexpr char* TIME_FORMAT = "%a %b %d %I:%M:%S %Z %Y";

The compiler complains:

   In file included from json/formatter.cc:22:0:
   json/formatter.hh:132:42: error: deprecated conversion from string
   constant to ‘char*’ [-Werror=write-strings]
        static constexpr char* TIME_FORMAT = "%a %b %d %I:%M:%S %Z %Y";

Since, unlike const, constexpr does not modify a type. It just applies
to an object (or function), and incidentally implies const to the
top-level type.
2015-05-25 11:57:19 +03:00
..
2015-03-01 15:29:13 +02:00
2015-04-02 10:27:38 +03:00
2015-04-19 10:33:38 +03:00
2015-03-11 14:45:43 +02:00
2015-05-19 19:33:18 +03:00
2015-03-15 20:18:17 +02:00
2015-05-19 19:33:18 +03:00
2015-03-03 14:58:58 +02:00
2015-05-11 13:33:33 +03:00
2015-03-24 10:12:47 +02:00
2015-05-14 11:26:58 +03:00