Skip to content

Commit

Permalink
Add specialization for boost:is_placeholder for issue #119
Browse files Browse the repository at this point in the history
  • Loading branch information
pfultz2 committed Mar 21, 2016
1 parent 9f4fcb7 commit 4245a89
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions include/fit/placeholders.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -324,4 +324,17 @@ namespace std {
{};
}

namespace boost {

template<class T>
struct is_placeholder;

template<int N>
struct is_placeholder<fit::placeholder<N>>
: std::integral_constant<int, N>
{};

This comment has been minimized.

Copy link
@viboes

viboes Mar 23, 2016

Collaborator

Please include explicitly <type_traits>

This comment has been minimized.

Copy link
@pfultz2

pfultz2 Mar 23, 2016

Author Collaborator

No, the user will include it when they use Boost.Bind. Boost.Bind is not a dependency of Fit, and never will be. Many users may not want to include Boost.Bind when they include the placeholders header. If the user is already using Boost.Bind placeholders then they have included that header already, and the Fit library will work accordingly.



}

#endif

0 comments on commit 4245a89

Please sign in to comment.