Boost logo

Boost :

Subject: Re: [boost] Strange snippet around operator T()
From: Steven Watanabe (watanabesj_at_[hidden])
Date: 2008-11-24 17:01:59


AMDG

Joel Falcou wrote:
> I was trying to find some decent way to declare named constants in
> my code and ended up with the following snippet :
>
> <snip>
>
> Now funny thing is that this structure allow me to do stuff like :
> float k = one_ / ( 1. + three_);
>
> Now if I remove the operator type(), I can't. But if i add a printf
> statement in this one, it is never called.
> Do someone has a clue about this behavior or am I playing with some
> undefined behavior ?

como 4.3.10.1 beta 2 accepts both.

In Christ,
Steven Watanabe


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk