Hi,
I just downloaded StandardCplusplus by maniacbug in the platformIO Home libraries tab to use with Arduino. When I try to include StandardCplusplus.h in my programs, I get this error message:
error: default argument for template parameter for class enclosing 'class std::basic_ostream<charT, traits>::sentry'
I have read it might be an incompatible Arduino version (like here StandardCplusplus Library doesn't work with version 1.8 - Installation & Troubleshooting - Arduino Forum). Is it the case with PIO? what am I supposed to do? Wait for a new version of PIO to fix the bug or I can do something?
Here is the full error message:
In file included from C:\Users\Jean-Christophe\.platformio\lib\StandardCplusplus_ID572/istream:24:0,
from C:\Users\Jean-Christophe\.platformio\lib\StandardCplusplus_ID572/complex:20,
from C:\Users\Jean-Christophe\.platformio\lib\StandardCplusplus_ID572\complex.cpp:19:
C:\Users\Jean-Christophe\.platformio\lib\StandardCplusplus_ID572/ostream:318:50: error: default argument for template parameter for class enclosing 'class std::basic_ostream<charT, traits>::sentry'
class _UCXXEXPORT basic_ostream<charT,traits>::sentry
^
In file included from C:\Users\Jean-Christophe\.platformio\lib\StandardCplusplus_ID572/complex:20:0,
from C:\Users\Jean-Christophe\.platformio\lib\StandardCplusplus_ID572\complex.cpp:19:
C:\Users\Jean-Christophe\.platformio\lib\StandardCplusplus_ID572/istream:343:107: error: default argument for template parameter for class enclosing 'class std::basic_istream<charT, traits>::sentry'
template <class charT,class traits = char_traits<charT> > class _UCXXEXPORT basic_istream<charT,traits>::sentry {
^
Compiling .pio\build\ATmega328P\lib219\StandardCplusplus_ID572\iostream.cpp.o
*** [.pio\build\ATmega328P\lib219\StandardCplusplus_ID572\complex.cpp.o] Error 1
In file included from C:\Users\Jean-Christophe\.platformio\lib\StandardCplusplus_ID572/istream:24:0,
from C:\Users\Jean-Christophe\.platformio\lib\StandardCplusplus_ID572/iostream:27,
from C:\Users\Jean-Christophe\.platformio\lib\StandardCplusplus_ID572\iostream.cpp:22:
C:\Users\Jean-Christophe\.platformio\lib\StandardCplusplus_ID572/ostream:318:50: error: default argument for template parameter for class enclosing 'class std::basic_ostream<charT, traits>::sentry'
class _UCXXEXPORT basic_ostream<charT,traits>::sentry
^
In file included from C:\Users\Jean-Christophe\.platformio\lib\StandardCplusplus_ID572/iostream:27:0,
from C:\Users\Jean-Christophe\.platformio\lib\StandardCplusplus_ID572\iostream.cpp:22:
C:\Users\Jean-Christophe\.platformio\lib\StandardCplusplus_ID572/istream:343:107: error: default argument for template parameter for class enclosing 'class std::basic_istream<charT, traits>::sentry'
template <class charT,class traits = char_traits<charT> > class _UCXXEXPORT basic_istream<charT,traits>::sentry {
^
In file included from C:\Users\Jean-Christophe\.platformio\lib\StandardCplusplus_ID572\ios.cpp:23:0:
C:\Users\Jean-Christophe\.platformio\lib\StandardCplusplus_ID572/ostream:318:50: error: default argument for template parameter for class enclosing 'class std::basic_ostream<charT, traits>::sentry'
class _UCXXEXPORT basic_ostream<charT,traits>::sentry
^
In file included from C:\Users\Jean-Christophe\.platformio\lib\StandardCplusplus_ID572\ios.cpp:24:0:
C:\Users\Jean-Christophe\.platformio\lib\StandardCplusplus_ID572/istream:343:107: error: default argument for template parameter for class enclosing 'class std::basic_istream<charT, traits>::sentry'
template <class charT,class traits = char_traits<charT> > class _UCXXEXPORT basic_istream<charT,traits>::sentry {
^
*** [.pio\build\ATmega328P\lib219\StandardCplusplus_ID572\iostream.cpp.o] Error 1
*** [.pio\build\ATmega328P\lib219\StandardCplusplus_ID572\ios.cpp.o] Error 1
====================================================================== [FAILED] Took 2.65 seconds ======================================================================