POV-Ray : Newsgroups : povray.off-topic : Teach yourself C++ in 21 days : Re: Teach yourself C++ in 21 strange malfunctions Server Time
29 Jul 2024 12:19:22 EDT (-0400)
  Re: Teach yourself C++ in 21 strange malfunctions  
From: Warp
Date: 17 Apr 2012 10:03:32
Message: <4f8d7834@news.povray.org>
Invisible <voi### [at] devnull> wrote:
> When I looked at my function, I found I'd written "it->second;" rather 
> than "return it->second;". Not only is this apparently legal, it doesn't 
> even generate a compile-time /warning/.

  What compiler would that be?

    int test()
    {
    }

test.cc:3:13: warning: no return statement in function returning non-void

-- 
                                                          - Warp


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.