Click here to Skip to main content
15,891,943 members
Home / Discussions / ATL / WTL / STL
   

ATL / WTL / STL

 
Questioncan somebody help me? Pin
china.net19-Nov-06 3:31
china.net19-Nov-06 3:31 
AnswerRe: help me ,please Pin
Stephen Hewitt19-Nov-06 15:28
Stephen Hewitt19-Nov-06 15:28 
Questionreplacment of CComModule in ATL7 Pin
tom groezer16-Nov-06 1:22
tom groezer16-Nov-06 1:22 
AnswerRe: replacment of CComModule in ATL7 Pin
prasad_som16-Nov-06 1:44
prasad_som16-Nov-06 1:44 
GeneralRe: replacment of CComModule in ATL7 Pin
tom groezer22-Nov-06 4:03
tom groezer22-Nov-06 4:03 
Questionshow or hiding tool bar Pin
salman kazi15-Nov-06 18:07
salman kazi15-Nov-06 18:07 
QuestionFont Information Pin
Gupta Suraj14-Nov-06 8:10
Gupta Suraj14-Nov-06 8:10 
QuestionSpecialization Pin
Juan Antonio Bermejo14-Nov-06 6:15
Juan Antonio Bermejo14-Nov-06 6:15 
I have something like this:

class SomeClass
{
...
template <typename _Iter>
void SomeFunction(_Iter begin, _Iter end)
{
...
}
}

and I want to specialize de template when I use vector::Iterator. I try this:

class SomeClass
{
...
template <typename _Iter>
void SomeFunction(_Iter begin, _Iter end)
{
...
}
template<class T>
void SomeFunction(typename std::vector<T>::iterator begin, typename std::vector<t>::iterator end)
{
...
}
}

The source (under Visual 2005) complies without errors nor warnings. When I try to use that specialization (something like this):

...
vector<midata> data;

myclass.SomeFunction(data.begin(), data.end());


the program calls the first one instead of the second (as I expected).

Is it possible to program that specialization? How?

Thank you in advance








jab

www.virtuamanager.com
AnswerRe: Specialization Pin
Joaquín M López Muñoz18-Nov-06 4:26
Joaquín M López Muñoz18-Nov-06 4:26 
GeneralRe: Specialization Pin
Juan Antonio Bermejo19-Nov-06 20:44
Juan Antonio Bermejo19-Nov-06 20:44 
AnswerRe: Specialization Pin
Zac Howland20-Nov-06 5:45
Zac Howland20-Nov-06 5:45 
QuestionSubstitute of CComModule _Module in VC2005 Pin
tom groezer13-Nov-06 18:59
tom groezer13-Nov-06 18:59 
Questionis socket class is blocking Pin
vineeshV13-Nov-06 6:06
vineeshV13-Nov-06 6:06 
AnswerRe: is socket class is blocking Pin
led mike13-Nov-06 11:38
led mike13-Nov-06 11:38 
JokeRe: is socket class is blocking Pin
Chris Meech17-Nov-06 8:14
Chris Meech17-Nov-06 8:14 
JokeRe: is socket class is blocking Pin
Jörgen Sigvardsson17-Nov-06 8:34
Jörgen Sigvardsson17-Nov-06 8:34 
Questionhow to handle pss_thru in hyerthreading Pin
vineeshV13-Nov-06 6:02
vineeshV13-Nov-06 6:02 
AnswerRe: CComModule _Module; Pin
led mike13-Nov-06 11:37
led mike13-Nov-06 11:37 
Questionproblem with registering a dll Pin
narayanagvs13-Nov-06 0:37
narayanagvs13-Nov-06 0:37 
AnswerRe: problem with registering a dll Pin
User 21559714-Nov-06 23:55
User 21559714-Nov-06 23:55 
QuestionHow to use tab control in split window by WTL Pin
Tom zh11-Nov-06 15:40
Tom zh11-Nov-06 15:40 
QuestionDebugging and ATL Pin
Polity4h11-Nov-06 5:00
Polity4h11-Nov-06 5:00 
AnswerRe: Debugging and ATL Pin
User 21559714-Nov-06 23:43
User 21559714-Nov-06 23:43 
GeneralRe: Debugging and ATL Pin
Polity4h15-Nov-06 2:24
Polity4h15-Nov-06 2:24 
Questionwhy 3rd parameter change to char? Pin
alan top10-Nov-06 13:56
alan top10-Nov-06 13:56 

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.