Click here to Skip to main content
15,887,585 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: CoCreateGuid problem Pin
harsha_12343-Aug-06 21:32
harsha_12343-Aug-06 21:32 
AnswerRe: CoCreateGuid problem Pin
Hamid_RT3-Aug-06 22:14
Hamid_RT3-Aug-06 22:14 
Questionhow to get table when mouse moves over a button Pin
Manjunath S3-Aug-06 21:11
Manjunath S3-Aug-06 21:11 
AnswerRe: how to get table when mouse moves over a button Pin
Hamid_RT3-Aug-06 22:05
Hamid_RT3-Aug-06 22:05 
QuestionRe: how to get table when mouse moves over a button Pin
Manjunath S3-Aug-06 23:43
Manjunath S3-Aug-06 23:43 
AnswerRe: how to get table when mouse moves over a button Pin
Hamid_RT4-Aug-06 1:30
Hamid_RT4-Aug-06 1:30 
AnswerRe: how to get table when mouse moves over a button Pin
Justin Tay4-Aug-06 1:43
Justin Tay4-Aug-06 1:43 
QuestionAre these template classes equivalent? Pin
Steve Echols3-Aug-06 21:02
Steve Echols3-Aug-06 21:02 
The only thing I can see is cosmetic, when you're using them.

I'm wondering if one way compiles faster than the other (I assume method 1, because there's less stuff to parse), and if they produce the same code in the exe (I assume they do)?

// Method 1
template < class T >
class Utils
{
public:
static void doSomething(T* object);
static void doSomethingElse(T* object);
};

// Method 2
class Utils
{
public:
template < class T >
static void doSomething(T* object);

template < class T >
static void doSomethingElse(T* object);
};

// A class
class ClassA
{
public:
};


ClassA a;
Utils<ClassA>::doSomething(&a); // Method 1
Utils::doSomething<ClassA>(&a); // Method 2

Just curious...


- S
50 cups of coffee and you know it's on!
AnswerRe: Are these template classes equivalent? Pin
sunit53-Aug-06 21:15
sunit53-Aug-06 21:15 
GeneralRe: Are these template classes equivalent? Pin
Steve Echols3-Aug-06 21:16
Steve Echols3-Aug-06 21:16 
GeneralRe: Are these template classes equivalent? [modified] Pin
sunit53-Aug-06 21:36
sunit53-Aug-06 21:36 
GeneralRe: Are these template classes equivalent? Pin
Steve Echols3-Aug-06 21:48
Steve Echols3-Aug-06 21:48 
GeneralRe: Are these template classes equivalent? Pin
sunit53-Aug-06 22:00
sunit53-Aug-06 22:00 
GeneralRe: Are these template classes equivalent? Pin
Steve Echols3-Aug-06 22:05
Steve Echols3-Aug-06 22:05 
GeneralRe: Are these template classes equivalent? Pin
sunit53-Aug-06 23:01
sunit53-Aug-06 23:01 
AnswerRe: Are these template classes equivalent? Pin
Steve Echols3-Aug-06 22:16
Steve Echols3-Aug-06 22:16 
GeneralRe: Are these template classes equivalent? [modified] Pin
sunit53-Aug-06 22:59
sunit53-Aug-06 22:59 
GeneralRe: Are these template classes equivalent? Pin
Steve Echols3-Aug-06 23:09
Steve Echols3-Aug-06 23:09 
GeneralRe: Are these template classes equivalent? [modified] Pin
sunit53-Aug-06 23:21
sunit53-Aug-06 23:21 
GeneralRe: Are these template classes equivalent? [modified] Pin
Steve Echols3-Aug-06 23:24
Steve Echols3-Aug-06 23:24 
GeneralRe: Are these template classes equivalent? Pin
sunit53-Aug-06 23:38
sunit53-Aug-06 23:38 
GeneralRe: Are these template classes equivalent? Pin
Steve Echols3-Aug-06 23:45
Steve Echols3-Aug-06 23:45 
GeneralRe: Are these template classes equivalent? Pin
Zac Howland4-Aug-06 4:23
Zac Howland4-Aug-06 4:23 
GeneralRe: Are these template classes equivalent? Pin
Steve Echols4-Aug-06 5:04
Steve Echols4-Aug-06 5:04 
GeneralRe: Are these template classes equivalent? Pin
Zac Howland4-Aug-06 5:11
Zac Howland4-Aug-06 5:11 

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.