summaryrefslogtreecommitdiff
path: root/boost/hana/if.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'boost/hana/if.hpp')
-rw-r--r--boost/hana/if.hpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/boost/hana/if.hpp b/boost/hana/if.hpp
index f65b514be7..5d7f2bb969 100644
--- a/boost/hana/if.hpp
+++ b/boost/hana/if.hpp
@@ -2,7 +2,7 @@
@file
Defines `boost::hana::if_`.
-@copyright Louis Dionne 2013-2016
+@copyright Louis Dionne 2013-2017
Distributed under the Boost Software License, Version 1.0.
(See accompanying file LICENSE.md or copy at http://boost.org/LICENSE_1_0.txt)
*/
@@ -21,7 +21,7 @@ Distributed under the Boost Software License, Version 1.0.
BOOST_HANA_NAMESPACE_BEGIN
//! @cond
template <typename Cond, typename Then, typename Else>
- constexpr decltype(auto) if_t::operator()(Cond&& cond, Then&& then, Else&& else_) const {
+ constexpr decltype(auto) if_t::operator()(Cond&& cond, Then&& then_, Else&& else_) const {
using Bool = typename hana::tag_of<Cond>::type;
using If = BOOST_HANA_DISPATCH_IF(if_impl<Bool>,
hana::Logical<Bool>::value
@@ -33,7 +33,7 @@ BOOST_HANA_NAMESPACE_BEGIN
#endif
return If::apply(static_cast<Cond&&>(cond),
- static_cast<Then&&>(then),
+ static_cast<Then&&>(then_),
static_cast<Else&&>(else_));
}
//! @endcond