simplify bsoncxx/util/functor.hpp

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Done
    • Priority: Minor - P4
    • 3.0.0-rc0
    • Affects Version/s: None
    • Component/s: Implementation
    • None
    • None
    • None
    • None
    • None
    • None
    • 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 (Inactive)
              Reporter:
              Adam Midvidy (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: