mirror of
https://github.com/fmtlib/fmt.git
synced 2025-07-30 10:47:35 +02:00
fix: Make basic_format_arg::visit() const (#4043)
This commit is contained in:
committed by
GitHub
parent
10f12fd3d2
commit
c4f6fa7135
@ -1760,7 +1760,7 @@ template <typename Context> class basic_format_arg {
|
|||||||
* `vis(value)` will be called with the value of type `double`.
|
* `vis(value)` will be called with the value of type `double`.
|
||||||
*/
|
*/
|
||||||
template <typename Visitor>
|
template <typename Visitor>
|
||||||
FMT_CONSTEXPR auto visit(Visitor&& vis) -> decltype(vis(0)) {
|
FMT_CONSTEXPR auto visit(Visitor&& vis) const -> decltype(vis(0)) {
|
||||||
switch (type_) {
|
switch (type_) {
|
||||||
case detail::type::none_type:
|
case detail::type::none_type:
|
||||||
break;
|
break;
|
||||||
|
Reference in New Issue
Block a user