You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
there are no arguments to ‘format_as’ that depend on a template parameter, so a declaration of ‘format_as’ must be available [-fpermissive] template <typename U, typename V = decltype(format_as(U()))
#2578
Closed
L-Super opened this issue
Dec 15, 2022
· 3 comments
when I use spdlog v1.11.0 on centos, I meet this error.
In file included from /home/.../include/spdlog/include/spdlog/fmt/fmt.h:27:0,
from /home/.../include/spdlog/include/spdlog/common.h:45,
from /home/.../include/spdlog/include/spdlog/spdlog.h:12,
from /home/.../src/cvr/http_server.cpp:8:
/home/.../include/spdlog/include/spdlog/fmt/bundled/core.h:1334:60: error: there are no arguments to ‘format_as’ that depend on a template parameter, so a declaration of ‘format_as’ must be available [-fpermissive]
template <typename U, typename V = decltype(format_as(U())),
^
/home/.../include/spdlog/include/spdlog/fmt/bundled/core.h:1334:60: note: (if you use ‘-fpermissive’, G++ will accept your code, but allowing the use of an undeclared name is deprecated)
/home/Listening/MonitorStorageServer/include/spdlog/include/spdlog/fmt/bundled/core.h:1334:60: error: there are no arguments to ‘format_as’ that depend on a template parameter, so a declaration of ‘format_as’ must be available [-fpermissive]
I found the same problem on the fmt library.link: 2969
Normally, the problem should have been fixed, but I still encountered this error.I don't know what's wrong
The text was updated successfully, but these errors were encountered:
Since spdlog v1.11.0, fmt v9 is now bundled, so there are incompatible changes.
I assume you are using a feature that is no longer supported in src/cvr/http_server.cpp:8 shown in the error message.
env:
when I use spdlog v1.11.0 on centos, I meet this error.
I found the same problem on the fmt library.link: 2969
Normally, the problem should have been fixed, but I still encountered this error.I don't know what's wrong
The text was updated successfully, but these errors were encountered: