POV-Ray : Newsgroups : povray.unix : Header precomp.h and precomp.cpp files issue. : Re: Header precomp.h and precomp.cpp files issue. Server Time
8 Feb 2025 11:00:21 EST (-0500)
  Re: Header precomp.h and precomp.cpp files issue.  
From: William F Pokorny
Date: 20 Mar 2020 11:52:07
Message: <5e74e6a7@news.povray.org>
On 3/20/20 6:25 AM, jr wrote:
...
>> precomp.h and precomp.ccp files ... I've since had this itch we might have
>> floating about similar *nix particular exposures due header inclusion
>> order(1).
...
>> (1) - Potentially where, in the code, not using std::<function>
>> namespace names.
> 
> pardon my ignorance but would that problem not .. disappear if, instead of
> importing, all names were given fully qualified?  (ie with namespace)
> 
Yep, fully qualified everywhere would close the exposure I think. 
Christoph was making changes in that direction - though his work might 
have been driven more by header re-work than my *nix specific worry.

Converting explicit std::<?>abs uses to std::abs and the like probably 
good to do too with care. Occasionally the aim might be to force certain 
input types / or to do indirect type conversions via a more specific 
function working on and returning certain types.

Bill P.


Post a reply to this message

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