mirror of
https://github.com/boostorg/histogram.git
synced 2025-05-11 13:14:06 +00:00
nicer
This commit is contained in:
parent
2ea4051e62
commit
6bc32d0ea6
@ -139,8 +139,8 @@ public:
|
||||
metadata_type& metadata() {
|
||||
return visit(
|
||||
[](auto& a) -> metadata_type& {
|
||||
using M = std::remove_reference_t<decltype(traits::metadata(a))>;
|
||||
return detail::static_if<std::is_same<M, metadata_type>>(
|
||||
using M = decltype(traits::metadata(a));
|
||||
return detail::static_if<std::is_same<M, metadata_type&>>(
|
||||
[](auto& a) -> metadata_type& { return traits::metadata(a); },
|
||||
[](auto&) -> metadata_type& {
|
||||
BOOST_THROW_EXCEPTION(std::runtime_error(detail::cat(
|
||||
|
Loading…
x
Reference in New Issue
Block a user