Click here to Skip to main content
15,914,245 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Performance issue.. [modified] Pin
Neo Andreson24-Oct-07 4:00
Neo Andreson24-Oct-07 4:00 
QuestionHow to know the type of variable at run time?? Pin
ashishbhatt23-Oct-07 17:38
ashishbhatt23-Oct-07 17:38 
AnswerRe: How to know the type of variable at run time?? Pin
mr_Tuborg23-Oct-07 18:51
mr_Tuborg23-Oct-07 18:51 
AnswerRe: How to know the type of variable at run time?? Pin
Naveen23-Oct-07 19:43
Naveen23-Oct-07 19:43 
AnswerRe: How to know the type of variable at run time?? Pin
Mark Salsbery24-Oct-07 6:01
Mark Salsbery24-Oct-07 6:01 
QuestionMultiple definitions Pin
John R. Shaw23-Oct-07 15:49
John R. Shaw23-Oct-07 15:49 
AnswerRe: Multiple definitions Pin
Christian Graus23-Oct-07 16:07
protectorChristian Graus23-Oct-07 16:07 
GeneralRe: Multiple definitions Pin
John R. Shaw23-Oct-07 17:24
John R. Shaw23-Oct-07 17:24 
Christian Graus wrote:
Can you provide the actual macros...


Christian,

Why would you think I was using macros? That would be counter productive and bad practice in C++. The code is pure standard C++, and applies nothing but the best practices. Using “typedef” is common practice, as examining any STL container will show.
typedef std::set<string_type> string_set_type;
typedef std::set<ccid_type> ccid_set_type;

The template takes the same arguments as “basic_string” and “string_type is defined as:
typedef std::basic_string<_CharT_, _Traits_, _Alloc_> string_type;

I am using a C++ STL style of coding, because this code is intended to be familiar to anyone use to using the STL.

The code has been working for months, but it needed some minor improvements. The “add_set” methods worked perfectly until yesterday, when I separated those other methods from a separate template class that has nothing to do with this one.


INTP
"Program testing can be used to show the presence of bugs, but never to show their absence."Edsger Dijkstra

AnswerRe: Multiple definitions Pin
User 58385223-Oct-07 16:07
User 58385223-Oct-07 16:07 
GeneralRe: Multiple definitions Pin
Christian Graus23-Oct-07 16:29
protectorChristian Graus23-Oct-07 16:29 
GeneralRe: Multiple definitions Pin
John R. Shaw23-Oct-07 17:50
John R. Shaw23-Oct-07 17:50 
GeneralRe: Multiple definitions Pin
User 58385223-Oct-07 18:22
User 58385223-Oct-07 18:22 
GeneralRe: Multiple definitions Pin
John R. Shaw23-Oct-07 18:46
John R. Shaw23-Oct-07 18:46 
QuestionSuspendThread and StackWalk64 Pin
Baltoro23-Oct-07 14:08
Baltoro23-Oct-07 14:08 
AnswerRe: SuspendThread and StackWalk64 Pin
cmk24-Oct-07 10:16
cmk24-Oct-07 10:16 
GeneralThanks for Reply Pin
Baltoro25-Oct-07 6:11
Baltoro25-Oct-07 6:11 
Questionirc via socket Pin
Adno23-Oct-07 12:29
Adno23-Oct-07 12:29 
QuestionRe: irc via socket Pin
Mark Salsbery23-Oct-07 13:42
Mark Salsbery23-Oct-07 13:42 
AnswerRe: irc via socket Pin
Adno23-Oct-07 14:59
Adno23-Oct-07 14:59 
GeneralRe: irc via socket Pin
Mark Salsbery24-Oct-07 6:07
Mark Salsbery24-Oct-07 6:07 
GeneralRe: irc via socket Pin
Adno24-Oct-07 9:03
Adno24-Oct-07 9:03 
GeneralRe: irc via socket Pin
Mark Salsbery24-Oct-07 10:59
Mark Salsbery24-Oct-07 10:59 
GeneralRe: irc via socket Pin
Moak8-Nov-07 12:16
Moak8-Nov-07 12:16 
QuestionCommunication between windows forms Pin
UnHolyKnight55523-Oct-07 11:35
UnHolyKnight55523-Oct-07 11:35 
AnswerRe: Communication between windows forms Pin
Hamid_RT23-Oct-07 20:48
Hamid_RT23-Oct-07 20:48 

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.