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
This simple program doesn't complie with the current master (397e8dd):
#include <fmt/printf.h>
#include <string>
using namespace std;
int main()
{
char_traits<char>::char_type c;
return 0;
The output is
test.cc: In function ‘int main()’:
test.cc:8:1: error: reference to ‘char_traits’ is ambiguous
char_traits<char>::char_type c;
^~~~~~~~~~~
In file included from /usr/include/c++/8/algorithm:61,
from include/fmt/printf.h:11,
from test.cc:1:
/usr/include/c++/8/bits/stl_algobase.h:392:12: note: candidates are: ‘template<class _CharT> struct std::char_traits’
struct char_traits;
^~~~~~~~~~~
In file included from include/fmt/ostream.h:12,
from include/fmt/printf.h:14,
from test.cc:1:
include/fmt/format.h:555:33: note: ‘template<class Char> struct fmt::v5::internal::char_traits’
template <typename Char> struct char_traits;
^~~~~~~~~~~
test.cc:6:13: error: expected primary-expression before ‘char’
char_traits<char>::char_type c;
My compiler is:
g++ --version
g++ (Debian 8.3.0-2) 8.3.0
The same with clang+++ 7.
The text was updated successfully, but these errors were encountered:
Hello!
This simple program doesn't complie with the current master (397e8dd):
The output is
My compiler is:
The same with clang+++ 7.
The text was updated successfully, but these errors were encountered: