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
Add #include <cstdarg> in icecream.hpp in order to avoid these following errors caused by this statement in mytest.cxx
using icecream::f_;
In file included from mytest.cxx:8:
./icecream.hpp:1613:58: error: unexpected type name 'T0': expected expression
result.push_back(static_cast<T>(va_arg(args, T0)));
^
./icecream.hpp:1628:38: error: expected '(' for function-style cast or type construction
auto v = va_arg(args, int) & 0x01;
~~~^
./icecream.hpp:1647:43: error: expected '(' for function-style cast or type construction
double d = va_arg(args, double);
~~~~~~^
./icecream.hpp:1674:41: error: unexpected type name 'T0': expected expression
return Tree{(T)(T1)va_arg(args, T0), std::move(buf_)};
^
./icecream.hpp:1680:34: error: expected '(' for function-style cast or type construction
auto i = va_arg(args, int) & 0x01;
~~~^
./icecream.hpp:1694:37: error: expected '(' for function-style cast or type construction
auto d = va_arg(args, double);
~~~~~~^
./icecream.hpp:1873:9: error: use of undeclared identifier 'va_start'
va_start(args, format);
^
./icecream.hpp:1926:9: error: use of undeclared identifier 'va_end'
va_end(args);
GCC is more permissive and seems to ignore this ...
gcc (Debian 13.2.0-4) 13.2.0
The text was updated successfully, but these errors were encountered:
Just to share my experience, hope it will help someone, great and useful lib, so here it is ...
Testbed :
Icecream : from master
Add
#include <cstdarg>
in icecream.hpp in order to avoid these following errors caused by this statement in mytest.cxxGCC is more permissive and seems to ignore this ...
The text was updated successfully, but these errors were encountered: