I think it is a better approach. As I took a quick look in win32-vc70,
vcl_cmath.h and vcl_cstdlib.h had taken the same approach. Shall we change
all these simultaneously?
----- Original Message -----
From: "Brad King" <brad.king@...>
To: "Frederik Schaffalitzky" <fsm@...>
Cc: "VXL Maintainers" <vxl-maintainers@...>
Sent: Tuesday, January 06, 2004 3:38 AM
Subject: Re: [Vxl-maintainers] win32-vc60/vcl_cmath.h
> On Mon, 5 Jan 2004, Frederik Schaffalitzky wrote:
> > On Mon, 5 Jan 2004, Brad King wrote:
> > > Hello,
> > >
> > > The win32-vc60/vcl_cmath.h is currently implemented like this:
> > [deleted]
> > > This introduces declarations into std, which is not technically
> > > While it works fine for vxl code that uses vcl, it may conflict with
> > > non-vcl-ized code (such as an application that does using namespace
> > > and also includes math.h).
> > It is not allowed in a conforming implementation, no, but then again
> > is not conforming! [If it were then we would not be worrying about the
> > ceil() missing from the std:: namespace.]
> > Are you sure the "using" scenario you mention would actually be a
> Yes, because this was the scenario in which I found the problem. A small
> example application I was trying to build was exposing it.
> > Something that would be a problem is code (from some another project,
> > say) that also tries to "fix" std:: in the same way. I think it is
> > important for the ability of VXL to "bolt onto" existing projects that
> > VCL not mess with the way the vendor library works.
> Yes, of course this would be a problem too.
> > > I suggest we change the implementation to work like this:
> > [deleted]
> > > Comments?
> > I think that would be better than the current approach.
> Okay, I'll do the new implementation when I get a chance. It will have to
> be synchronized with vcl_complex to get vcl_abs setup correctly.
> This SF.net email is sponsored by: IBM Linux Tutorials.
> Become an expert in LINUX or just sharpen your skills. Sign up for IBM's
> Free Linux Tutorials. Learn everything from the bash shell to sys admin.
> Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click
> Vxl-maintainers mailing list