templated return functions

This is a discussion on templated return functions within the C++ Programming forums, part of the General Programming Boards category; I think the problem is that Im running the debug configuration because with the release configuration works fine also Then ...

  1. #16
    Carnivore ('-'v) Hunter2's Avatar
    Join Date
    May 2002
    Posts
    2,879
    I think the problem is that Im running the debug configuration because with the release configuration works fine also
    Then see my above post (I just edited it a second ago). Apparently, VC.NET is 'smart' enough to let you know when you've used a variable without initializing it, and gives you a crash so that you don't end up with a bug going unnoticed.
    Just Google It. √

    (\ /)
    ( . .)
    c(")(") This is bunny. Copy and paste bunny into your signature to help him gain world domination.

  2. #17
    Registered User
    Join Date
    Oct 2004
    Posts
    25
    Quote Originally Posted by Hunter2
    Then see my above post (I just edited it a second ago). Apparently, VC.NET is 'smart' enough to let you know when you've used a variable without initializing it, and gives you a crash so that you don't end up with a bug going unnoticed.
    what post?

  3. #18
    Carnivore ('-'v) Hunter2's Avatar
    Join Date
    May 2002
    Posts
    2,879
    >>what post?
    Quote Originally Posted by Hunter2
    **EDIT**
    >>Run-Time Check Failure #3 - The variable 'a' is being used without being defined.
    Sounds like a debugger feature or something to me. Have you event tried initializing the variable yet?
    Just Google It. √

    (\ /)
    ( . .)
    c(")(") This is bunny. Copy and paste bunny into your signature to help him gain world domination.

  4. #19
    Registered User
    Join Date
    Oct 2004
    Posts
    25
    oh sorry =P

Page 2 of 2 FirstFirst 12
Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Code review
    By Elysia in forum C++ Programming
    Replies: 71
    Last Post: 05-13-2008, 09:42 PM
  2. C++ FTP class won't work
    By lord mazdak in forum C++ Programming
    Replies: 8
    Last Post: 12-18-2005, 06:57 AM
  3. Pong is completed!!!
    By Shamino in forum Game Programming
    Replies: 11
    Last Post: 05-26-2005, 10:50 AM
  4. OpenGL and Windows
    By sean345 in forum Game Programming
    Replies: 5
    Last Post: 06-24-2002, 10:14 PM
  5. oh me oh my hash maps up the wazoo
    By DarkDays in forum C++ Programming
    Replies: 5
    Last Post: 11-30-2001, 11:54 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21