Giter Site home page Giter Site logo

bfgroup / duck_invoke Goto Github PK

View Code? Open in Web Editor NEW
15.0 15.0 1.0 7.59 MB

A simple to use, single header, tag_invoke utility for C++11.

Home Page: https://bfgroup.github.io/duck_invoke/

License: Boost Software License 1.0

C++ 42.26% Shell 32.92% Batchfile 10.61% Python 14.20%
cpp cpp11 cpp14 cpp17 cpp20 header-only

duck_invoke's People

Contributors

grafikrobot avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

Forkers

isabella232

duck_invoke's Issues

error C2672: 'operator __surrogate_func': no matching overloaded function found

example.cpp

(166): error C2672: 'operator __surrogate_func': no matching overloaded function found (199): note: see reference to function template instantiation 'bool print_foo(const T &)' being compiled with [ T=otherlib::one ] (166): error C2893: Failed to specialize function template 'unknown-type bfg::tag::operator ()(Args &&...) noexcept() const' (111): note: see declaration of 'bfg::tag::operator ()' (166): note: With the following template arguments: (166): note: 'Args={const T &}' Compiler returned: 2

I tried to use TAG_INVOKE pattern in my project I was implementing myself variant this pattern but it didn't work then I have found your project and I tried to compile example but I got the same error from msvc.

https://godbolt.org/z/jKjxWq - it is your example in godbolt.org , any msvc compiler compiles its with error "error C2672: 'operator __surrogate_func': no matching overloaded function found" but clang and gcc (c++11->17->20) compile well , What is happening , I don't know , What am I doing wrong? What do you think about it ? Thanks.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.