mirror of
https://github.com/boostorg/histogram.git
synced 2025-05-11 21:24:14 +00:00
explain comma trick
This commit is contained in:
parent
3b687db2bc
commit
e04a765b1f
@ -28,6 +28,8 @@ using static_options_impl = axis::option::bitset<T::options()>;
|
|||||||
|
|
||||||
template <class I, class D, class A>
|
template <class I, class D, class A>
|
||||||
double value_method_switch_impl1(std::false_type, I&&, D&&, const A&) {
|
double value_method_switch_impl1(std::false_type, I&&, D&&, const A&) {
|
||||||
|
// comma trick to make all compilers happy; some would complain about
|
||||||
|
// unreachable code after the throw, others about a missing return
|
||||||
return BOOST_THROW_EXCEPTION(
|
return BOOST_THROW_EXCEPTION(
|
||||||
std::runtime_error(cat(type_name<A>(), " has no value method"))),
|
std::runtime_error(cat(type_name<A>(), " has no value method"))),
|
||||||
double{};
|
double{};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user