Boost logo

Boost Users :

Subject: Re: [Boost-users] Bizarre problem with range/adaptor/transformed.hpp
From: John M. Dlugosz (mpbecey7gu_at_[hidden])
Date: 2011-07-31 08:00:29


On 7/30/2011 6:52 PM, Nathan Ridge wrote:
>
>> But if the file is included, the program is broken.
>
> Could you be a *little* more specific?
>
> Regards,
> Nate

I posted the initial findings before investigating further, in case someone already knew
of some feature of that particular include file that was known to be problematic, or a
hint for me to look at.

Now I've determined that it's the existence of the 'transformed' variable.

Just this much:

         template< template<class> class Holder >
         struct forwarderXYZ
         {
         };

         template< class T >
         struct transform_holderXYZ
         {
         };

           static const forwarderXYZ<transform_holderXYZ>
                     transformedXYZ =
                       forwarderXYZ<transform_holderXYZ>();

added to my header file will cause the program to malfunction in one specific feature.

—John


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net