POV-Ray : Newsgroups : povray.off-topic : My first C++ program : Re: A test Server Time
30 Sep 2024 21:31:25 EDT (-0400)
  Re: A test  
From: Invisible
Date: 24 Sep 2008 05:04:04
Message: <48da0284$1@news.povray.org>
Actually, I have a question...

The C++ tutorial I'm reading has a section on how to inline functions. 
Now *clearly* the compiler cannot inline something that it can't *find*. 
So all that stuff about putting code into header files if you want it 
inlined across compilation units is a necessary part of the way a C++ 
compiler works. But does C++ ever inline functions within *the same* 
compilation unit automatically? Or does it literally refuse to inline 
every function that doesn't say "inline" on it?


Post a reply to this message

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