[CXX-616] simplify bsoncxx/util/functor.hpp Created: 27/Jun/15  Updated: 11/Jan/16  Resolved: 07/Jul/15

Status: Closed
Project: C++ Driver
Component/s: Implementation
Affects Version/s: None
Fix Version/s: 3.0.0-rc0

Type: Improvement Priority: Minor - P4
Reporter: Adam Midvidy Assignee: Adam Midvidy
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Epic Link: C++11 Driver MongoDB 3.2

 Description   

I'm pretty sure the whole is_functor metafunction could be replaced by

std::is_convertible<FunctionLike, std::function<R(Args...)>>::value



 Comments   
Comment by Githook User [ 07/Jul/15 ]

Author:

{u'username': u'amidvidy', u'name': u'Adam Midvidy', u'email': u'amidvidy@gmail.com'}

Message: CXX-616 simplify is_functor
Branch: master
https://github.com/mongodb/mongo-cxx-driver/commit/a8a4cc7fb6f9075542ca0c0ea7e0b692acebbb8c

Comment by Adam Midvidy [ 30/Jun/15 ]

https://github.com/mongodb/mongo-cxx-driver/pull/298/files

Generated at Wed Feb 07 21:59:45 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.