summaryrefslogtreecommitdiff
path: root/boost/boost.wconstexpr-not-const.patch.0
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2013-05-30 17:52:01 +0200
committerStephan Bergmann <sbergman@redhat.com>2013-05-30 17:52:01 +0200
commit07e756f5b9fa5d499de8f3e3ad61ee66d336a349 (patch)
tree69e06966cce01374baf092b5d81b5fddb6fe1306 /boost/boost.wconstexpr-not-const.patch.0
parent1de66ba440855050a794b3b2a8647c1b02c210b8 (diff)
-Werror,-Wconstexpr-not-const
...at least current trunk towards Clang 3.4 complains "'constexpr' non-static member function will not be implicitly 'const' in C++1y; add 'const' to avoid a change in behavior." Change-Id: Id3d1af263040fdea2c2f5d0bc6a037d7a17184bd
Diffstat (limited to 'boost/boost.wconstexpr-not-const.patch.0')
-rw-r--r--boost/boost.wconstexpr-not-const.patch.043
1 files changed, 43 insertions, 0 deletions
diff --git a/boost/boost.wconstexpr-not-const.patch.0 b/boost/boost.wconstexpr-not-const.patch.0
new file mode 100644
index 000000000000..26049be3aea6
--- /dev/null
+++ b/boost/boost.wconstexpr-not-const.patch.0
@@ -0,0 +1,43 @@
+--- boost/chrono/duration.hpp
++++ boost/chrono/duration.hpp
+@@ -663,36 +663,36 @@
+ template <class LhsDuration, class RhsDuration>
+ struct duration_eq
+ {
+- BOOST_CONSTEXPR bool operator()(const LhsDuration& lhs, const RhsDuration& rhs)
++ BOOST_CONSTEXPR bool operator()(const LhsDuration& lhs, const RhsDuration& rhs) const
+ {
+ typedef typename common_type<LhsDuration, RhsDuration>::type CD;
+ return CD(lhs).count() == CD(rhs).count();
+ }
+ };
+
+ template <class LhsDuration>
+ struct duration_eq<LhsDuration, LhsDuration>
+ {
+- BOOST_CONSTEXPR bool operator()(const LhsDuration& lhs, const LhsDuration& rhs)
++ BOOST_CONSTEXPR bool operator()(const LhsDuration& lhs, const LhsDuration& rhs) const
+ {
+ return lhs.count() == rhs.count();
+ }
+ };
+
+ template <class LhsDuration, class RhsDuration>
+ struct duration_lt
+ {
+- BOOST_CONSTEXPR bool operator()(const LhsDuration& lhs, const RhsDuration& rhs)
++ BOOST_CONSTEXPR bool operator()(const LhsDuration& lhs, const RhsDuration& rhs) const
+ {
+ typedef typename common_type<LhsDuration, RhsDuration>::type CD;
+ return CD(lhs).count() < CD(rhs).count();
+ }
+ };
+
+ template <class LhsDuration>
+ struct duration_lt<LhsDuration, LhsDuration>
+ {
+- BOOST_CONSTEXPR bool operator()(const LhsDuration& lhs, const LhsDuration& rhs)
++ BOOST_CONSTEXPR bool operator()(const LhsDuration& lhs, const LhsDuration& rhs) const
+ {
+ return lhs.count() < rhs.count();
+ }