Click here to Skip to main content
15,905,867 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: visual c++ Pin
Jonathan Davies28-Feb-09 12:54
Jonathan Davies28-Feb-09 12:54 
QuestionFlashing Toolbar Buttons Pin
softwaremonkey28-Feb-09 7:41
softwaremonkey28-Feb-09 7:41 
AnswerRe: Flashing Toolbar Buttons Pin
Code-o-mat28-Feb-09 7:51
Code-o-mat28-Feb-09 7:51 
GeneralRe: Flashing Toolbar Buttons Pin
softwaremonkey1-Mar-09 6:16
softwaremonkey1-Mar-09 6:16 
GeneralRe: Flashing Toolbar Buttons Pin
Code-o-mat1-Mar-09 6:57
Code-o-mat1-Mar-09 6:57 
QuestionMethod template in a class template [compiling error, help] [modified] Pin
jim258kelly28-Feb-09 6:08
jim258kelly28-Feb-09 6:08 
NewsRe: Method template in a class template [compiling error, help] [modified] Pin
jim258kelly28-Feb-09 7:30
jim258kelly28-Feb-09 7:30 
AnswerRe: Method template in a class template [compiling error, help] Pin
Stuart Dootson28-Feb-09 9:37
professionalStuart Dootson28-Feb-09 9:37 
It's because there's no way for the compiler to tell when it's doing syntax checking that U<int>.templateMethod is a template function. So, you have to tell it, like so:

cwtm.template templateMethod<int>();


This compiles OK with gcc 4.0.1.

Interestingly, VC++9.0 doesn't care either way - it's happy to compile your original code or the variant with template added in.

Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p

GeneralRe: Method template in a class template [compiling error, help] Pin
jim258kelly28-Feb-09 10:34
jim258kelly28-Feb-09 10:34 
GeneralRe: Method template in a class template [compiling error, help] Pin
Stuart Dootson28-Feb-09 11:31
professionalStuart Dootson28-Feb-09 11:31 
QuestionString table Updation Pin
Alex@9C28-Feb-09 5:39
Alex@9C28-Feb-09 5:39 
AnswerRe: String table Updation Pin
Code-o-mat28-Feb-09 7:37
Code-o-mat28-Feb-09 7:37 
QuestionPicture Control Pin
daavena28-Feb-09 5:36
daavena28-Feb-09 5:36 
AnswerRe: Picture Control Pin
Code-o-mat28-Feb-09 7:42
Code-o-mat28-Feb-09 7:42 
GeneralRe: Picture Control Pin
daavena28-Feb-09 7:49
daavena28-Feb-09 7:49 
GeneralRe: Picture Control Pin
Code-o-mat28-Feb-09 7:52
Code-o-mat28-Feb-09 7:52 
GeneralRe: Picture Control Pin
daavena28-Feb-09 8:19
daavena28-Feb-09 8:19 
GeneralRe: Picture Control [modified] Pin
Code-o-mat28-Feb-09 8:31
Code-o-mat28-Feb-09 8:31 
GeneralRe: Picture Control Pin
daavena28-Feb-09 9:09
daavena28-Feb-09 9:09 
GeneralRe: Picture Control [modified] Pin
Code-o-mat28-Feb-09 9:22
Code-o-mat28-Feb-09 9:22 
GeneralRe: Picture Control Pin
daavena28-Feb-09 9:46
daavena28-Feb-09 9:46 
QuestionLarge number generator in c++ Pin
Mark Elrod28-Feb-09 5:12
Mark Elrod28-Feb-09 5:12 
AnswerRe: Large number generator in c++ Pin
Stuart Dootson28-Feb-09 9:45
professionalStuart Dootson28-Feb-09 9:45 
QuestionDebugging Problem Pin
rkshdixit28-Feb-09 0:41
rkshdixit28-Feb-09 0:41 
AnswerRe: Debugging Problem Pin
Iain Clarke, Warrior Programmer28-Feb-09 1:34
Iain Clarke, Warrior Programmer28-Feb-09 1:34 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.