error: 'function' in namespace 'boost' does not name a template type

Hi, Cannot I define a following boost function? Any workarounds? typedef boost::function<bool (const uint32_t, const std::shared_ptr<boost::asio::streambuf> &)> Subscriber_t; Thank you. Kind regards,

AMDG On 07/27/2017 05:59 PM, jupiter via Boost-users wrote:
Cannot I define a following boost function? Any workarounds?
typedef boost::function<bool (const uint32_t, const std::shared_ptr<boost::asio::streambuf> &)> Subscriber_t;
Did you #include boost/function.hpp? In Christ, Steven Watanabe

Thank you, it was my fault On Fri, Jul 28, 2017 at 10:16 AM, Steven Watanabe via Boost-users < boost-users@lists.boost.org> wrote:
AMDG
On 07/27/2017 05:59 PM, jupiter via Boost-users wrote:
Cannot I define a following boost function? Any workarounds?
typedef boost::function<bool (const uint32_t, const std::shared_ptr<boost::asio::streambuf> &)> Subscriber_t;
Did you #include boost/function.hpp?
In Christ, Steven Watanabe
_______________________________________________ Boost-users mailing list Boost-users@lists.boost.org https://lists.boost.org/mailman/listinfo.cgi/boost-users
participants (2)
-
jupiter
-
Steven Watanabe