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

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

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

Boost - Users mailing list
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,

_______________________________________________
Boost-users mailing list
[hidden email]
https://lists.boost.org/mailman/listinfo.cgi/boost-users
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

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

Boost - Users mailing list
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
[hidden email]
https://lists.boost.org/mailman/listinfo.cgi/boost-users
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

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

Boost - Users mailing list
Thank you, it was my fault

On Fri, Jul 28, 2017 at 10:16 AM, Steven Watanabe via Boost-users <[hidden email]> 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
[hidden email]
https://lists.boost.org/mailman/listinfo.cgi/boost-users


_______________________________________________
Boost-users mailing list
[hidden email]
https://lists.boost.org/mailman/listinfo.cgi/boost-users
Loading...