Boost logo

Boost Users :

Subject: Re: [Boost-users] boost::any and const pointers
From: Steven Watanabe (watanabesj_at_[hidden])
Date: 2009-12-02 17:03:20


James C. Sutherland wrote:
> Thank you!
> That works great for pointers, but now not for POD, e.g.,
> const int m = get<int>(p,"int");
> Any ideas of how to get this to work with POD and pointers?

typename boost::mpl::eval_if<is_pointer<T>,
        typename boost::add_const<
            typename boost::remove_pointer<T>::type

In Christ,
Steven Watanabe

Boost-users list run by williamkempf at, kalb at, bjorn.karlsson at, gregod at, wekempf at