Comments (5)
Actually, it turns out to be a bug in Visual Studio. Intellisense was showing the error, but it compiled with no errors. I had to rebuild the intellisense database to have VS recognize the symbols.
from ureact.
#include <ureact/signal.hpp>
#include <ureact/adaptor/lift.hpp>
using namespace ureact;
using namespace ureact::default_context;
Are omitted. It is not clearly mentioned anywhere and I fixed some of similar cases in the dev branch. But doc/introduction.adoc
is not fixed yet even in dev. Thanks for the mentioning.
from ureact.
I've updated my comment with the changed code (after your reply). The namespace ureact
is undefined using the includes shown in the first comment.
from ureact.
Could you provide the exact error messages? It is very strange if includes are found, but they are no provide the ureact namespace
from ureact.
If you use ureact in MSVC without CMake, only passing include directory, then you might be missing "/Zc:__cplusplus" flag.
Ureact used __cplusplus for standard detection, but MSVC reports the wrong version by default. See
https://devblogs.microsoft.com/cppblog/msvc-now-correctly-reports-__cplusplus/
from ureact.
Related Issues (20)
- Rework observer/scoped_observer/observe/tap
- Consider adding `transaction::finish()` method HOT 1
- Consider to support iterators as an observer argument HOT 1
- Make sure transactions can't be started or finished when turn is in progress HOT 1
- `adjustment` adapter possible improvements
- Make `Adaptor` `AdaptorClosure` and nodes part of public interface
- Try to mesure and improve compile times HOT 8
- Get rid of `ureact_amalgamated.hpp` HOT 1
- Make normal library mode (not header-only)
- Consider adding dereference operator for signals
- Consider `connection_owner` idea from `PG1003/observer`
- Research how to implement Qt style property bindings HOT 2
- Compile errors for Visual Studio HOT 4
- Get rid of `issue_template.md` HOT 1
- Rework github actions
- `ureact::merge` can't compile in latest MSVC in c++20 mode HOT 3
- Consider making "event_source::operator<<" transaction wrapper HOT 1
- Research signal-slot library features
- Consider pitchfork project structure (aka PFL)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ureact.