Skip to content

Commit

Permalink
Use С++11 syntax for constexpr function.
Browse files Browse the repository at this point in the history
Signed-off-by: luckychess <[email protected]>
  • Loading branch information
luckychess committed Jun 7, 2018
1 parent d00818b commit b8e864a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions libs/common/visitor.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -88,8 +88,7 @@ namespace iroha {
*/
template <typename TVariant, typename... TVisitors>
constexpr decltype(auto) visit_in_place(TVariant &&variant, TVisitors &&... visitors) {
auto visitor = make_visitor(visitors...);
return boost::apply_visitor(visitor, std::forward<TVariant>(variant));
return boost::apply_visitor(make_visitor(visitors...), std::forward<TVariant>(variant));
}
} // namespace iroha

Expand Down

0 comments on commit b8e864a

Please sign in to comment.