Click here to Skip to main content
15,917,645 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Filesize? Pin
Abin22-Jan-03 2:32
Abin22-Jan-03 2:32 
GeneralRe: Filesize? Pin
Dov Sherman22-Jan-03 2:38
Dov Sherman22-Jan-03 2:38 
GeneralI´m looking for Icons and Bitmaps for the Toolbar Pin
strizi22-Jan-03 2:06
strizi22-Jan-03 2:06 
GeneralRe: I´m looking for Icons and Bitmaps for the Toolbar Pin
Nitron22-Jan-03 6:07
Nitron22-Jan-03 6:07 
Generallook the Internet for "Glyphs" Pin
strizi22-Jan-03 18:47
strizi22-Jan-03 18:47 
QuestionIs there a workaround for this? Pin
Jörgen Sigvardsson22-Jan-03 1:46
Jörgen Sigvardsson22-Jan-03 1:46 
AnswerRe: Is there a workaround for this? Pin
Joaquín M López Muñoz22-Jan-03 6:39
Joaquín M López Muñoz22-Jan-03 6:39 
GeneralRe: Is there a workaround for this? Pin
Jörgen Sigvardsson22-Jan-03 10:18
Jörgen Sigvardsson22-Jan-03 10:18 
Joaquín M López Muñoz wrote:
hey, if the Boost guys weren't able to make it in VS.NET chances are it is damn hard

True!


Joaquín M López Muñoz wrote:
If you can get by with info about whether a given type is a pointer or not, this can be done in VS.NET

For my particular problem that won't help me much anyway.

My problem is basically this:
template <typename T>
struct deleter {
    void operator()(T* pObj) const { delete pObj; }
};
 
typedef std::vector<AClass*> AClassVector;
AClassVector vec;
vec.push_back(...);
...
std::for_each(vec.begin(), vec.end(), deleter<AClassVector::value_type>());
This doesn't work well since my deleter template works on a different level of abstraction. operator()(T* pObj) becomes operator()(AClass** pObj) which delete won't handle. So, I basically wanted to do this:
std::for_each(vec.begin(), vec.end(), deleter<deref<AClassVector::value_type> >());
I know I can pass AClass as template parameter to deleter<> (which I did later Hmmm | :| ). But I think deref<AClassVector::value_type> would have been a more elegant solution.


--
There's a new game we like to play you see. A game with added reality. You treat me like a dog, get me down on my knees.

We call it master and servant.

General0xC0000005:Acces violation Pin
Geert Craessaerts22-Jan-03 0:06
Geert Craessaerts22-Jan-03 0:06 
GeneralRe: 0xC0000005:Acces violation Pin
xxhimanshu22-Jan-03 0:22
xxhimanshu22-Jan-03 0:22 
GeneralRe: 0xC0000005:Acces violation Pin
RChin22-Jan-03 0:24
RChin22-Jan-03 0:24 
GeneralRe: 0xC0000005:Acces violation Pin
Ted Ferenc22-Jan-03 1:29
Ted Ferenc22-Jan-03 1:29 
GeneralRe: 0xC0000005:Acces violation Pin
joshfl23-Jan-03 5:42
joshfl23-Jan-03 5:42 
Questionwhat is octet-stream? Pin
murali_utr21-Jan-03 23:59
murali_utr21-Jan-03 23:59 
AnswerRe: what is octet-stream? Pin
Daniel Turini22-Jan-03 0:14
Daniel Turini22-Jan-03 0:14 
AnswerRe: what is octet-stream? Pin
Christian Graus22-Jan-03 0:21
protectorChristian Graus22-Jan-03 0:21 
GeneralRe: what is octet-stream? Pin
Daniel Turini22-Jan-03 1:17
Daniel Turini22-Jan-03 1:17 
QuestionButton without focus? Pin
Moak21-Jan-03 23:50
Moak21-Jan-03 23:50 
AnswerRe: Button without focus? Pin
chepuri_uk22-Jan-03 0:22
chepuri_uk22-Jan-03 0:22 
GeneralRe: Button without focus? Pin
Moak22-Jan-03 0:51
Moak22-Jan-03 0:51 
AnswerRe: Button without focus? Pin
xxhimanshu22-Jan-03 0:26
xxhimanshu22-Jan-03 0:26 
GeneralRe: Button without focus? Pin
Moak22-Jan-03 1:06
Moak22-Jan-03 1:06 
QuestionHow to Add an Event Handler for Toolbar Button in VC++7 Pin
Exceter21-Jan-03 23:37
Exceter21-Jan-03 23:37 
AnswerRe: How to Add an Event Handler for Toolbar Button in VC++7 Pin
xxhimanshu22-Jan-03 0:32
xxhimanshu22-Jan-03 0:32 
GeneralRe: How to Add an Event Handler for Toolbar Button in VC++7 Pin
Rage22-Jan-03 1:01
professionalRage22-Jan-03 1:01 

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.