Boost logo

Boost Users :

Subject: Re: [Boost-users] [type_traits] will the future has_operator_left_shift be able to test if a type is serializable to a stream ?
From: Frédéric Bron (frederic.bron_at_[hidden])
Date: 2011-02-03 18:03:38


> The #include goes fine but I still get the following error :
>  error C4430: missing type specifier - int assumed. Note: C++ does not
> support default-int
> With the code :
>  BOOST_STATIC_ASSERT(( boost::has_operator_left_shift< int, int >::value ));

New version here:
http://www.boostpro.com/vault/index.php?action=downloadfile&filename=type_traits-dos.tar.bz2&directory=Extension&

> (by the way the source files are indented with tabs)

now with spaces

>    struct convertible_ambiguous
>    {
>        operator int() const;
>        operator float() const;
>    };
> Maybe this should be written in the documentation as a limitation, though ?

Yes, good point. Thanks,

I am trying to install Visual Express 10 for testing purposes but its
is really really heavy (2.3 Gb!!!). Hope I will be able to remove it
soon.

Frédéric


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