Thread: vector and iterator problem

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Registered User
    Join Date
    Oct 2006
    Posts
    3,445
    Quote Originally Posted by matsp View Post
    Now, you'll scratch your head a bit before you figure out that the time you passed in a file that COULDN'T be opened, it still did the printf!
    Mats
    I've done exactly that before.... it took over a day to find it.

  2. #2
    Kernel hacker
    Join Date
    Jul 2007
    Location
    Farncombe, Surrey, England
    Posts
    15,677
    Quote Originally Posted by Elkvis View Post
    I've done exactly that before.... it took over a day to find it.
    Yes. It took several people 6 months to find that sort of thing in some obscure part of our embedded OS! They can be quite hard to find. If the compiler warns about it, you should be able fix it in 30 seconds.

    --
    Mats
    Compilers can produce warnings - make the compiler programmers happy: Use them!
    Please don't PM me for help - and no, I don't do help over instant messengers.

Popular pages Recent additions subscribe to a feed