Boost logo

Boost :

Subject: Re: [boost] static in_class constants
From: Christian Henning (chhenning_at_[hidden])
Date: 2010-03-13 13:04:32


Hi there,

> ====== BEGIN OUTPUT ======
> Running 9 test cases...
> unknown location(0): fatal error in "read_image_info_using_string":
> std::exception: file_stream_device: failed to open file
> unknown location(0): fatal error in "read_image_test": std::exception:
> file_stream_device: failed to open file
[snip]

I suspect you know what the error is. ;-)

>
> I had to modify Jamfile.v2 to use
>
> <library>/boost/test//boost_unit_test_framework/<link>static
>
> plus in #define BOOST_TEST_MAIN in pnm_test.cpp

You need to add code to have the pnm cases work? Strange. Please
confirm, since all works just fine on my Windows box.

>
> It looks OK to me.
>
> I double checked and this is what preprocessor generates for me:
>
> struct pnm_image_type : property_base< uint32_t >
> {
>    static const type _mono_asc = 1;
>    static const type _gray_asc = 2;
>    static const type _color_asc = 3;
>    static const type _mono_bin = 4;
>    static const type _gray_bin = 5;
>    static const type _color_bin = 6;
> };
>

My gcc is 3.4.5. Do you think that might be a problem? I can always
use enums instead.

Best,
Christian


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