Click here to Skip to main content
16,011,578 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Visual C++ compiler bug ??? Pin
Maximilien20-Nov-02 9:50
Maximilien20-Nov-02 9:50 
GeneralRe: Visual C++ compiler bug ??? Pin
Jim Crafton20-Nov-02 10:02
Jim Crafton20-Nov-02 10:02 
AnswerRe: Visual C++ compiler bug ??? Pin
ian mariano20-Nov-02 9:52
ian mariano20-Nov-02 9:52 
GeneralRe: Visual C++ compiler bug ??? Pin
Jim Crafton20-Nov-02 10:04
Jim Crafton20-Nov-02 10:04 
AnswerRe: Visual C++ compiler bug ??? Pin
Dave Bryant20-Nov-02 10:06
Dave Bryant20-Nov-02 10:06 
GeneralRe: Visual C++ compiler bug ??? Pin
Jim Crafton20-Nov-02 10:14
Jim Crafton20-Nov-02 10:14 
AnswerRe: Visual C++ compiler bug ??? Pin
Tim Smith20-Nov-02 10:30
Tim Smith20-Nov-02 10:30 
AnswerRe: Visual C++ compiler bug ??? Pin
James R. Twine20-Nov-02 10:42
James R. Twine20-Nov-02 10:42 
   Looking up the error code explains the problem.

   But here is something to think about: Is the reason you are getting the error code because the "template code generator/expander" will only generate code once for a given template and template-argument(s)?

   Meaning, given the following code:
<br />
    class CClassA<br />
    { <br />
        std::vector< long > m_vecLongs;<br />
    };<br />
    //<br />
    // ...<br />
    //<br />
    class CClassB<br />
    { <br />
        std::vector< long > m_vecMoreLongs;<br />
    };<br />

   -Does the "code generator" evaluatate and generate code twice, once for each std::vector< long > or does it generate the code one time, and reuse it when it sees that it has already generated the code for that specific template/template-argument before?

   If the latter, it explains why the error occurs: there would be no way for the "code generator" to know if a local type called Bar is the same as another local type called Bar someplace else.  With external linkage, it has the mangled name (which uses classes/structs) to identify one over the other.  I do not believe that local identifiers get mangled.

   Just a thought...

    Peace!

-=- James (Sonork:100.21837)
"There is nothing worse than being oblivious to the fact that you do not know what you are doing."
[Get Check Favorites 1.5 Now!]
AnswerRe: Visual C++ compiler bug ??? Pin
Joaquín M López Muñoz20-Nov-02 10:45
Joaquín M López Muñoz20-Nov-02 10:45 
GeneralRe: Visual C++ compiler bug ??? Pin
Jim Crafton20-Nov-02 10:51
Jim Crafton20-Nov-02 10:51 
AnswerRe: Visual C++ compiler bug ??? Pin
KevinHall21-Nov-02 11:23
KevinHall21-Nov-02 11:23 
GeneralPrint Preview Pin
act_x20-Nov-02 9:11
act_x20-Nov-02 9:11 
GeneralRe: Print Preview Pin
Ravi Bhavnani20-Nov-02 9:18
professionalRavi Bhavnani20-Nov-02 9:18 
GeneralRe: Print Preview Pin
act_x20-Nov-02 9:58
act_x20-Nov-02 9:58 
GeneralRe: Print Preview Pin
Ravi Bhavnani20-Nov-02 10:08
professionalRavi Bhavnani20-Nov-02 10:08 
GeneralRe: Print Preview Pin
act_x20-Nov-02 10:43
act_x20-Nov-02 10:43 
GeneralRe: Print Preview Pin
Ravi Bhavnani20-Nov-02 11:11
professionalRavi Bhavnani20-Nov-02 11:11 
General2k/xp resizing difference... Pin
Joan M20-Nov-02 8:54
professionalJoan M20-Nov-02 8:54 
GeneralRe: 2k/xp resizing difference... Pin
Tim Smith20-Nov-02 9:13
Tim Smith20-Nov-02 9:13 
GeneralRe: 2k/xp resizing difference... Pin
James R. Twine20-Nov-02 10:53
James R. Twine20-Nov-02 10:53 
GeneralRe: 2k/xp resizing difference... Pin
Joan M20-Nov-02 19:37
professionalJoan M20-Nov-02 19:37 
GeneralRe: 2k/xp resizing difference... Pin
James R. Twine21-Nov-02 4:26
James R. Twine21-Nov-02 4:26 
Generalextract each byte from an integer varialbe Pin
peter ho20-Nov-02 7:43
peter ho20-Nov-02 7:43 
GeneralRe: extract each byte from an integer varialbe Pin
dabs20-Nov-02 8:01
dabs20-Nov-02 8:01 
GeneralRe: extract each byte from an integer varialbe Pin
Paul M Watt20-Nov-02 8:03
mentorPaul M Watt20-Nov-02 8:03 

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.