Uploaded image for project: 'C++ Driver'
  1. C++ Driver
  2. CXX-616

simplify bsoncxx/util/functor.hpp

    • Type: Icon: Improvement Improvement
    • Resolution: Done
    • Priority: Icon: Minor - P4 Minor - P4
    • 3.0.0-rc0
    • Affects Version/s: None
    • Component/s: Implementation
    • Labels:
      None

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

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

            Assignee:
            adam.midvidy Adam Midvidy
            Reporter:
            adam.midvidy Adam Midvidy
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: