Click here to Skip to main content

ATL / WTL / STL

   

 
You must Sign In to use this message board. (secure sign-in)
 
Search this forum  
 FAQ
    Noise  Layout  Per page  Show 
  Refresh
AnswerRe: Create 32 and 64 bits COM dll Pinmember«_Superman_»17:29 3 Feb '12  
QuestionGeneric terms....!!! plz help [modified] Pinmemberrk1218017:48 31 Jan '12  
AnswerRe: Generic terms....!!! plz help PinmvpRichard MacCutchan21:27 31 Jan '12  
AnswerRe: Generic terms....!!! plz help PinmvpRichard MacCutchan3:38 1 Feb '12  
RantRe: Generic terms....!!! plz help Pinmemberrk1218017:39 6 Feb '12  
GeneralRe: Generic terms....!!! plz help PinmvpRichard MacCutchan22:37 6 Feb '12  
QuestionMS C++ gives error for fully-qualified ctor name in initializer list Pinmemberold_hacker11:23 27 Jan '12  
Compiling C++ with MS VS 2010, and getting an error when the initializer list for a derived class has a fully-qualified name for the base class constructor. Example:
class base {
public:
  base(int i);
...
};
class myclass : public base {
public:
  myclass();
...
};
myclass::myclass() : base::base(123)
{
...
The GNU compiler on Linux is quite happy, but the MS compiler objects to the (unnecessary) qualification of the base class constructor; it insists on:
myclass::myclass() : base(123)
{
...
What I'd really like to know is, which compiler is wrong? The C++ standard should either allow or prohibit the extra qualification, but I can't find an online copy of a standard.
 
It's only a problem because of a lot of code in a project that I've inherited is written that way; it used to compile on older versions of MS, but no longer.
SuggestionRe: MS C++ gives error for fully-qualified ctor name in initializer list PinmemberPablo Aliskevicius22:25 28 Jan '12  
AnswerRe: MS C++ gives error for fully-qualified ctor name in initializer list PinmvpRichard MacCutchan22:37 28 Jan '12  
QuestionCan you help me solve my OTS Elevated COM Object error? PinmemberChristine_Irene3:08 26 Jan '12  
QuestionStore STL iterator in CListBox PinmemberLionAM0:36 17 Jan '12  
AnswerRe: Store STL iterator in CListBox PinmvpRichard MacCutchan0:52 17 Jan '12  
GeneralRe: Store STL iterator in CListBox PinmemberLionAM1:11 17 Jan '12  
GeneralRe: Store STL iterator in CListBox PinmvpRichard MacCutchan1:31 17 Jan '12  
GeneralRe: Store STL iterator in CListBox PinmemberLionAM2:02 17 Jan '12  
GeneralRe: Store STL iterator in CListBox PinmvpRichard MacCutchan3:00 17 Jan '12  
GeneralRe: Store STL iterator in CListBox PinmemberLionAM5:16 17 Jan '12  
GeneralRe: Store STL iterator in CListBox PinmvpRichard MacCutchan5:22 17 Jan '12  
GeneralRe: Store STL iterator in CListBox PinmemberLionAM9:09 17 Jan '12  
GeneralRe: Store STL iterator in CListBox PinmvpRichard MacCutchan9:31 17 Jan '12  
AnswerRe: Store STL iterator in CListBox Pinmember«_Superman_»18:23 18 Jan '12  
GeneralRe: Store STL iterator in CListBox PinmemberLionAM9:04 19 Jan '12  
AnswerRe: Store STL iterator in CListBox PinmemberCool Cow Orjan4:24 19 Jan '12  
GeneralRe: Store STL iterator in CListBox PinmemberLionAM8:54 19 Jan '12  
GeneralRe: Store STL iterator in CListBox PinmemberCool Cow Orjan23:38 19 Jan '12  

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.


Advertise | Privacy | Mobile
Beta | 2.5.120517.1 | Last Updated 21 May 2012
Copyright © CodeProject, 1999-2012
All Rights Reserved. Terms of Use
Layout: fixed | fluid