Boost logo

Boost :

From: Sebastien Marc (sebmarc_at_[hidden])
Date: 2001-10-17 10:42:11


Nice article Jim.

It brings me with some of the problems i am facing
with any. I tested some of the code in the article on
my plateform (Linux gcc 2.95).

  boost::any a1 = 5;
  std::string s;
  s = boost::any_cast<const char*>(a1);

The any_cast throws an exception. That's not supposed
to happen from what you said in the article.

I wonder if anybody else has this particular problem.

Seb.

--- "Jim.Hyslop" <jim.hyslop_at_[hidden]> wrote:
> Hi, all
>
> The latest "Conversations" article, co-written by
> Herb Sutter and myself, is
> available at
> http://www.cuj.com/experts/1912/hyslop.htm This
> issue
> highlights the any library.
>
> --
> Jim Hyslop
> Senior Software Designer
> Leitch Technology International Inc.
> (http://www.leitch.com)
> Columnist, C/C++ Users Journal
> (http://www.cuj.com/experts)
>
>
> Info: http://www.boost.org Unsubscribe:
> <mailto:boost-unsubscribe_at_[hidden]>
>
> Your use of Yahoo! Groups is subject to
> http://docs.yahoo.com/info/terms/
>
>

__________________________________________________
Do You Yahoo!?
Make a great connection at Yahoo! Personals.
http://personals.yahoo.com


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