We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6e54d61 commit 98280e3Copy full SHA for 98280e3
mainframe/detail/base.hpp
@@ -23,12 +23,6 @@ const char* get_emptyspace(size_t num);
23
size_t get_max_string_length(const std::vector<std::string>&);
24
std::vector<size_t> get_max_string_lengths(const std::vector<std::vector<std::string>>&);
25
26
-template<typename T>
27
-struct quickval
28
-{
29
- static T value;
30
-};
31
-
32
template<typename T>
33
auto
34
stringify(std::ostream& o, const T& t, bool) -> decltype(o << t, o)
mainframe/detail/expression.hpp
@@ -423,9 +423,9 @@ struct binary_expr
423
operator()(const Iter<IsConst, IsReverse, Ts...>& begin,
424
const Iter<IsConst, IsReverse, Ts...>& curr,
425
const Iter<IsConst, IsReverse, Ts...>& end) const
426
- -> decltype(Op::exec(detail::quickval<L>::value.
+ -> decltype(Op::exec(std::declval<L&>().
427
operator()(begin, curr, end),
428
- detail::quickval<R>::value.
+ std::declval<R&>().
429
operator()(begin, curr, end)))
430
{
431
return Op::exec(l.operator()(begin, curr, end), r.operator()(begin, curr, end));
@@ -454,7 +454,7 @@ struct unary_expr
454
455
456
457
- -> decltype(Op::exec(detail::quickval<T>::value.
+ -> decltype(Op::exec(std::declval<T&>().
458
operator()(curr)))
459
460
return Op::exec(t.operator()(begin, curr, end));
0 commit comments