Boost logo

Boost Users :

From: Caleb Epstein (cae_at_[hidden])
Date: 2004-06-01 06:55:23


On Fri, May 28, 2004 at 11:38:15PM +0000, Wolfgang Meyer wrote:

> If my understanding is correct, "get" expects the desired result
> type to be specified explicitly. In fact, how should the compiler
> deduce the return type of "get" otherwise? So you need to write:
> double d = get<double>(pi);

        Thanks. This works. I missed the example usage of get<T> in
        the documentation.

-- 
Caleb Epstein |  bklyn . org  |    Without love intelligence is dangerous;
    cae at    | Brooklyn Dust |    without intelligence love is not enough.
bklyn dot org |   Bunny Mfg.  |    		-- Ashley Montagu

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