Giter Club home page Giter Club logo

Comments (7)

tower120 avatar tower120 commented on June 18, 2024

Sorry for this inconvenient. What compiler do you use, and what is compiler output?

P.S. I just tried latest mingw-w64 gcc 7.1, compilation is now broken. It seems this is due to apply disambiguation (gcc sees it as if it were in global namespace). VS 2017 and clang 5 compiles fine.

from reactive.

tower120 avatar tower120 commented on June 18, 2024

Please try now, if my assumption was correct, it should fix your problems.

from reactive.

kornerr avatar kornerr commented on June 18, 2024

I actually rolled out my own implementation for reporting back then in September, so this issue can be closed :)

from reactive.

tower120 avatar tower120 commented on June 18, 2024

Is it in public domain?

from reactive.

kornerr avatar kornerr commented on June 18, 2024

Yeah. It's part of 'mjin-report', part of the game tech I'm working on. Here's a sample test of its usage: https://bitbucket.org/ogstudio/mjin-report/src/tip/include/mjin-report/Test.h?at=default&fileviewer=file-view-default

Though, I ended up with reporting only without passing values, because passing values breaks when we deal with arrays: many questions arise, many corner cases, so I just limited the application to reporting only.

from reactive.

tower120 avatar tower120 commented on June 18, 2024

Reporting only without passing values? You mean something like Event<> https://github.com/tower120/reactive#event?

struct MyObject{
   int value = 0;
   Event<> onChange;

   void increase(){
      value++;
      onChange();
   }
} obj;

obj.onChange += [&](){
   std::cout << obj.value;
}

from reactive.

kornerr avatar kornerr commented on June 18, 2024

Yep.

from reactive.

Related Issues (4)

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.