Skip to content

boost/thread/detail/thread.hpp #includes boost/bind.hpp unconditionally but uses it conditionally #307

@dmenendez-gruposantander

Description

I can see boost::bind() used only if BOOST_THREAD_PROVIDES_VARIADIC_THREAD is not defined

Could the #include <boost/bind.hpp> be moved inside a #ifndef BOOST_THREAD_PROVIDES_VARIADIC_THREAD section? In fact I'd move it inside an #else section under line 50

Boost.Bind brings in a lot of cruft, that is, increased compile times and funny warnings boost/bind/placeholders.hpp(54): note: see reference to class template instantiation 'boost::arg<9>' being compiled

Happy to provide a PR

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions