|
Boost : |
From: Dowie, Martin \(SELEX\) \(UK\) (martin.dowie_at_[hidden])
Date: 2007-08-30 07:24:32
Neal,
I just tested this out last night and it already achieves this (on
reasonably modern compilers ;-) but you may have to switch from "Debug"
mode to "Release" mode, i.e. switch on optimizations.
That was with VC++2005.
Cheers
-- Martin
> -----Original Message-----
> From: boost-bounces_at_[hidden]
> [mailto:boost-bounces_at_[hidden]] On Behalf Of Neal Becker
> Sent: 30 August 2007 12:08
> To: boost_at_[hidden]
> Subject: [boost] [constrained-value] zero-overhead
>
> *** WARNING ***
>
> This mail has originated outside your organization, either
> from an external partner or the Global Internet.
> Keep this in mind if you answer this message.
>
> One more wish/requirement for cv.
>
> Maybe this is already met? I haven't checked.
>
> I want to be able to select a policy that does nothing, and
> on (reasonably modern compilers) achieve performance
> comparable to the underlying (int) type. That is, I want to
> use this like logging - where I can switch it off at compile
> time and make the overhead negligible.
>
> _______________________________________________
> Unsubscribe & other changes:
> http://lists.boost.org/mailman/listinfo.cgi/boost
>
>
SELEX Sensors and Airborne Systems Limited
Registered Office: Sigma House, Christopher Martin Road, Basildon, Essex SS14 3EL
A company registered in England & Wales. Company no. 02426132
********************************************************************
This email and any attachments are confidential to the intended
recipient and may also be privileged. If you are not the intended
recipient please delete it from your system and notify the sender.
You should not copy it or use it for any purpose nor disclose or
distribute its contents to any other person.
********************************************************************
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk