Mam następujący kod:dlaczego ciąg nie zadeklarowane w zakresie
#include <string>
#include <boost/thread/tss.hpp>
static boost::thread_specific_ptr<string> _tssThreadNameSptr;
I pojawia się następujący błąd
g++ -c -I$BOOST_PATH tssNaming.h
tssNaming.h:7: error: 'string' was not declared in this scope
Ale ja w tym ciąg w moim #include
.
dodać std :: przed ciąg – innochenti
możliwym duplikatu [C++ błąd: 'string' nie został zadeklarowany] (http://stackoverflow.com/questions/2890860/c- error-string-has-not-been-declaration) – juanchopanza