Hello,
I am a new user, I get an error when I try to compile the program given below.
test.cpp
#include<vector>
int main()
{
typedef std::vector<bool> data;
typedef data::iterator iterator;
typedef data::const_iterator const_iterator;
typedef typename data::pointer pointer;
typedef typename data::const_pointer const_pointer;
return 0;
}
CC test.cpp
"test.cpp", line 8: Error: std::vector<bool>::pointer is not accessible from
main().
"test.cpp", line 9: Error: std::vector<bool>::const_pointer is not accessible
from main().
2 Error(s) detected.
What could be the problem ?
CC -V prints:
CC: Sun C++ 5.5 Patch 113817-15 2005/10/25
Please help.
Thanks and Regards,
Zuber
_______________________________________________
Solaris-Users mailing list
[email protected]
http://www.filibeto.org/mailman/listinfo/solaris-users