Click here to Skip to main content
15,881,803 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: strcpy_s with WCHAR option Pin
led mike24-Jun-09 11:55
led mike24-Jun-09 11:55 
GeneralVOID *function() help Pin
Douglas Kirk24-Jun-09 7:35
Douglas Kirk24-Jun-09 7:35 
GeneralRe: VOID *function() help Pin
bulg24-Jun-09 7:45
bulg24-Jun-09 7:45 
GeneralRe: VOID *function() help Pin
Douglas Kirk24-Jun-09 7:49
Douglas Kirk24-Jun-09 7:49 
GeneralRe: VOID *function() help Pin
Chris Losinger24-Jun-09 9:04
professionalChris Losinger24-Jun-09 9:04 
GeneralRe: VOID *function() help Pin
Douglas Kirk24-Jun-09 9:57
Douglas Kirk24-Jun-09 9:57 
GeneralRe: VOID *function() help Pin
Stuart Dootson24-Jun-09 10:48
professionalStuart Dootson24-Jun-09 10:48 
QuestionInferred Function Pointer Template Parameter Pin
Skippums24-Jun-09 7:25
Skippums24-Jun-09 7:25 
I would like to create a template class that takes two template parameters:
1) A typename parameter, T
2) A pointer to a template function, F, that has the following declaration
template<typename U>
U DoSomething(int arg) { ... }
With such a declaration, I would like to instantiate my template class as follows:
MyTemplateClass<int, &DoSomething<SomeType>> myInstance;
Is there some way to declare MyTemplateClass such that I can infer the typename of SomeType? I have tried the following two cases but receive a compile error for both:
template<typename T, template <typename U> U (*F)(T)>
template<typename T, U (*F<typename U>)(T)>
I know that I could add a third template parameter, but would prefer to avoid it if at all possible. Thanks for any assistance,

Sounds like somebody's got a case of the Mondays

-Jeff

AnswerRe: Inferred Function Pointer Template Parameter Pin
Stuart Dootson24-Jun-09 10:46
professionalStuart Dootson24-Jun-09 10:46 
QuestionCDialogTemplate Pin
p_196024-Jun-09 7:14
p_196024-Jun-09 7:14 
AnswerRe: CDialogTemplate Pin
David Crow24-Jun-09 8:22
David Crow24-Jun-09 8:22 
GeneralRe: CDialogTemplate Pin
siva45524-Jun-09 8:31
siva45524-Jun-09 8:31 
GeneralRe: CDialogTemplate Pin
David Crow24-Jun-09 8:35
David Crow24-Jun-09 8:35 
GeneralRe: CDialogTemplate Pin
p_196024-Jun-09 8:48
p_196024-Jun-09 8:48 
QuestionRe: CDialogTemplate Pin
David Crow24-Jun-09 8:56
David Crow24-Jun-09 8:56 
AnswerRe: CDialogTemplate Pin
p_196024-Jun-09 9:03
p_196024-Jun-09 9:03 
QuestionRe: CDialogTemplate Pin
David Crow24-Jun-09 9:07
David Crow24-Jun-09 9:07 
AnswerRe: CDialogTemplate Pin
Ozer Karaagac24-Jun-09 12:53
professionalOzer Karaagac24-Jun-09 12:53 
QuestionBest practice for include directives vs. settings search path ? Pin
Maximilien24-Jun-09 4:27
Maximilien24-Jun-09 4:27 
AnswerRe: Best practice for include directives vs. settings search path ? Pin
Stuart Dootson24-Jun-09 7:12
professionalStuart Dootson24-Jun-09 7:12 
QuestionCan we get column value from SQL (does not know member value)? Pin
Curious 200924-Jun-09 4:22
Curious 200924-Jun-09 4:22 
QuestionRe: Can we get column value from SQL (does not know member value)? Pin
David Crow24-Jun-09 5:05
David Crow24-Jun-09 5:05 
AnswerRe: Can we get column value from SQL (does not know member value)? Pin
Curious 200924-Jun-09 7:02
Curious 200924-Jun-09 7:02 
QuestionIGPM interface Pin
subhabasu24-Jun-09 2:51
subhabasu24-Jun-09 2:51 
QuestionClose X button in tadded control and vertical scroll. Pin
birajendu24-Jun-09 2:46
birajendu24-Jun-09 2:46 

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.