Boost logo

Boost Users :

Subject: [Boost-users] [result_of]
From: er (erwann.rogard_at_[hidden])
Date: 2009-10-12 21:28:14


Hi All,

I've noticed that if do,

class A: F{
    template<typename S>
    struct result{};

    template<typename A1,typename X>
    struct result<A1(X)>{
      typedef ... type;
    };

};

result_of<A(X)>::type

tries to deduce the result type from F (not accessible because private),
so I'm left with having to keep F in a variable:

class A{
    // ...

    private:
    F f;
};

Any suggestion for keeping F as a private base?


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