Ignore:
Timestamp:
2018-07-05T21:41:24Z (7 years ago)
Author:
Dzejrou <dzejrou@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
09416c12
Parents:
ddd287d
git-author:
Dzejrou <dzejrou@…> (2018-05-17 23:46:22)
git-committer:
Dzejrou <dzejrou@…> (2018-07-05 21:41:24)
Message:

cpp: renamed aux::invoke to aux::INVOKE to match standard and avoid conflicts with std::invoke, added functional tests and fixed some bugs found by them

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/cpp/include/impl/functional.hpp

    rddd287d r69cc156  
    4646    decltype(auto) invoke(F&& f, Args&&... args)
    4747    {
    48         return aux::invoke(forward<F>(f)(forward<Args>(args)...));
     48        return aux::INVOKE(forward<F>(f)(forward<Args>(args)...));
    4949    }
    5050
     
    6767                decltype(auto) operator()(Args&&... args)
    6868                {
    69                     return invoke(func_, forward<Args>(args)...);
     69                    return INVOKE(func_, forward<Args>(args)...);
    7070                }
    7171
Note: See TracChangeset for help on using the changeset viewer.