Git Product home page Git Product logo

promise.hpp's Introduction

BlackMATov Hub

Open Source

Link Language Description Stats
curly.hpp C++17 Simple cURL C++17 wrapper curly.hpp.stars curly.hpp.forks
defer.hpp C++17 Go's defer implementation in C++17 defer.hpp.stars defer.hpp.forks
ecs.hpp C++17 C++17 Entity Component System ecs.hpp.stars ecs.hpp.forks
enduro2d C++17 Yet another 2d game engine of dreams enduro2d.stars enduro2d.forks
enum.hpp C++17 C++17 compile-time enum reflection library enum.hpp.stars enum.hpp.forks
flat.hpp C++17 Library of flat vector-like based associative containers flat.hpp.stars flat.hpp.forks
invoke.hpp C++11 std::invoke/std::apply analogs for C++11/14 invoke.hpp.stars invoke.hpp.forks
kari.hpp C++17 Experimental library for currying in C++17 kari.hpp.stars kari.hpp.forks
meta.hpp C++20 C++20 tiny dynamic reflection library meta.hpp.stars meta.hpp.forks
promise.hpp C++17 C++ asynchronous promises like a Promises/A+ promise.hpp.stars promise.hpp.forks
vmath.hpp C++17 C++17 tiny vector math library vmath.hpp.stars vmath.hpp.forks

Unity Assets

Link Language Description
Isometric 2.5D Toolset C# Make 2.5D isometric game in Unity easy
Flash Animation Toolset C# Convert your flash animation for Unity easy

Publications

Title Links
Currying and partial application in C++14 En / Ru
Isometric Plugin for Unity3D En / Ru
Flash-animation in Unity3D from scratch. Part one, lyrical. En / Ru
Гетерогенный поиск в ассоциативных контейнерах на C++ Ru

promise.hpp's People

Contributors

blackmatov avatar

Stargazers

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

Watchers

 avatar  avatar  avatar  avatar

promise.hpp's Issues

sub promise type deduction failed

Function make_all_promise can not deduce template parameters because on some compilers (GCC for example) iterator for std::array is just a pointer type and has not value_type type.

promise lifetime ?

promise p;
p.then([](int a) {
return 1;
}.then(int b) {
return 2;
});

p.resolve(3);

|then| member function actully calls |attach|, and push lambda/callback into std::vector<>.
the quesion is when p invokes the first |then|, and own this callback and states, however, the second |then| will new a promise, and nobody owns this callback.

so when i try to call p.resolve(3), which only trigger the first calback execution ?

'discarding return value' warning on MSVC

function impl::make_tuple_promise_impl calls std::make_tuple which result is discarded.

MSVC compiler warning:
promise.hpp(1273,22): warning C4834: discarding return value of function with 'nodiscard' attribute

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.