   Error using templates in MSVC++ 6
  I have the line    semaphore <list<smoke_client*>> clients;Declaring clients as a semaphore, semaphore is a template class and I give it type list, list is also a template class and I give it type smoke_client*. I get the following errors:d:\vipera\vipera3\release_vers\objects\smoke\smoke.h(96) : error C2146: syntax error : missing ',' before identifier 'clients'd:\vipera\vipera3\release_vers\objects\smoke\smoke.h(96) : error C2065: 'clients' : undeclared identifierd:\vipera\vipera3\release_vers\objects\smoke\smoke.h(96) : error C2143: syntax error : missing '>' before ';'d:\vipera\vipera3\release_vers\objects\smoke\smoke.h(96) : error C2208: 'class semaphore' : no members defined using this typeAny ideas why? it looks like valid C++ to me...Thanks, ~SPHEDIT: oh and also when I take the template argument list away from list it gives me an error about needing a template argument list, so I am concluding this code is correct C++, is this possibly a problem with MSVC++?[edited by - ShmeeBegek on July 31, 2003 5:45:40 PM][edited by - ShmeeBegek on July 31, 2003 5:57:10 PM]
    Check to make sure each of the class auruements you pass:listandsmoke_clientare define.Pat - Ex nihilo nihilus ;quote:Original post by ShmeeBegek   I have the line  semaphore <list<smoke_client*>> clients;the error is that there is no space between the two >> 's. The compiler interpret's it as the right shift operator otherwise. [edited by - jamessharpe on July 31, 2003 6:43:15 PM];Thanks! that was it. ~SPH