template
void StdDate::empty()
{
std::map::iterator it;
}
that piece of code wont work, ive been googling for hours but can't find an answer.. compiler says: QMap Class:: sasha.setSalary( 40000 ); EmployeeMap::Iterator it; for ( it = map.begin(); it ! past-the-end iterator is still associated with the map it belongs to, however http://rivit.cs.byu.edu/621/F02/qt/doc/html/qmap.htmlHOME |
-error: expected `;' before 'it'
-error: dependent-name 'std::map,std::
allocator > >::iterator' is parsed as a non-
type, but instantiation yields a type
if i switch it it std::map::iterator it; it works fine, but tht was just done for testing to see if the syntax was wrong.. so why can't i use S and T?
c++
Did you use a namespace? The C++ compiler complains a lot about those.
no, but the problem is solved, solution was actually given by the compiler, guess im just too lazy to read all tht output it gives..
anyways, for those who wonders the solution was to write
typename std::map::iterator it;
Just to clarify, what language is it? C#?
Where's The Advantage In Windows Genuine Advantage?
Stocks Bounce After S&P Joins Bear Market
|