Skip to content

Commit

Permalink
added missing constexpr
Browse files Browse the repository at this point in the history
  • Loading branch information
akrzemi1 committed Jun 28, 2016
1 parent d41a354 commit 9dddc10
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion optional.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ T* static_addressof(T& ref)

// the call to convert<A>(b) has return type A and converts b to type A iff b decltype(b) is implicitly convertible to A
template <class U>
U convert(U v) { return v; }
constexpr U convert(U v) { return v; }

} // namespace detail

Expand Down

0 comments on commit 9dddc10

Please sign in to comment.