Comments (3)
Log from CI
Run cmake --build . --parallel 10 --config Release
cmake --build . --parallel 10 --config Release
shell: C:\Program Files\PowerShell\7\pwsh.EXE -command ". '{0}'"
MSBuild version 17.7.2+d6990bcfa for .NET Framework
// ============================================================================================================================================================
// ============================================================================================================================================================
// ============================================================================================================================================================
D:\a\ureact\ureact\include\ureact/adaptor/merge.hpp(41,62): error C2039: 'copy_events_from': is not a member of 'ureact::v0::detail::event_merge_node<E,Source,E>::update::<lambda_1>' [D:\a\ureact\build\tests\src\ureact_test.vcxproj]
with
[
Source=int,
E=std::string
]
D:\a\ureact\ureact\include\ureact/adaptor/merge.hpp(41,98): message : see declaration of 'ureact::v0::detail::event_merge_node<E,Source,E>::update::<lambda_1>' [D:\a\ureact\build\tests\src\ureact_test.vcxproj]
with
[
Source=int,
E=std::string
]
D:\a\ureact\ureact\include\ureact/adaptor/merge.hpp(37,45): message : while compiling class template member function 'ureact::v0::detail::update_result ureact::v0::detail::event_merge_node<E,Source,E>::update(void)' [D:\a\ureact\build\tests\src\ureact_test.vcxproj]
with
[
Source=int,
E=std::string
]
D:\a\ureact\ureact\include\ureact/detail/node_base.hpp(29): message : see reference to class template instantiation 'ureact::v0::detail::event_merge_node<E,Source,E>' being compiled [D:\a\ureact\build\tests\src\ureact_test.vcxproj]
with
[
Source=int,
E=std::string
]
D:\a\ureact\ureact\include\ureact/detail/node_base.hpp(40,17): message : see reference to function template instantiation 'std::shared_ptr<ureact::v0::detail::event_merge_node<E,Source,E>> ureact::v0::detail::create_node<ureact::v0::detail::event_merge_node<E,Source,E>,const ureact::v0::context&,const ureact::v0::events<int>&,const ureact::v0::events<E>&>(const ureact::v0::context &,const ureact::v0::events<int> &,const ureact::v0::events<E> &)' being compiled [D:\a\ureact\build\tests\src\ureact_test.vcxproj]
with
[
Source=int,
E=std::string
]
D:\a\ureact\ureact\include\ureact/adaptor/merge.hpp(88,24): message : see reference to function template instantiation 'Ret ureact::v0::detail::create_wrapped_node<ureact::v0::events<E>,ureact::v0::detail::event_merge_node<E,Source,E>,const ureact::v0::context&,const ureact::v0::events<int>&,const ureact::v0::events<E>&>(const ureact::v0::context &,const ureact::v0::events<int> &,const ureact::v0::events<E> &)' being compiled [D:\a\ureact\build\tests\src\ureact_test.vcxproj]
with
[
Ret=ureact::v0::events<E>,
Source=int,
E=std::string
]
D:\a\ureact\ureact\tests\src\adaptor\merge.cpp(80,34): message : see reference to function template instantiation 'Ret ureact::v0::detail::MergeAdaptor<merged_type>::operator ()<E,std::basic_string<char,std::char_traits<char>,std::allocator<char>>>(const ureact::v0::events<E> &,const ureact::v0::events<std::basic_string<char,std::char_traits<char>,std::allocator<char>>> &) const' being compiled [D:\a\ureact\build\tests\src\ureact_test.vcxproj]
with
[
Ret=ureact::v0::events<E>,
E=int
]
// ============================================================================================================================================================
// ============================================================================================================================================================
// ============================================================================================================================================================
D:\a\ureact\ureact\include\ureact/adaptor/merge.hpp(41,62): error C2039: 'copy_events_from': is not a member of 'ureact::v0::detail::event_merge_node<E,Source,E>::update::<lambda_1>' [D:\a\ureact\build\tests\src\ureact_test.vcxproj]
with
[
Source=int,
E=int
]
D:\a\ureact\ureact\include\ureact/adaptor/merge.hpp(41,98): message : see declaration of 'ureact::v0::detail::event_merge_node<E,Source,E>::update::<lambda_1>' [D:\a\ureact\build\tests\src\ureact_test.vcxproj]
with
[
Source=int,
E=int
]
D:\a\ureact\ureact\include\ureact/adaptor/merge.hpp(37,45): message : while compiling class template member function 'ureact::v0::detail::update_result ureact::v0::detail::event_merge_node<E,Source,E>::update(void)' [D:\a\ureact\build\tests\src\ureact_test.vcxproj]
with
[
Source=int,
E=int
]
D:\a\ureact\ureact\include\ureact/detail/node_base.hpp(29): message : see reference to class template instantiation 'ureact::v0::detail::event_merge_node<E,Source,E>' being compiled [D:\a\ureact\build\tests\src\ureact_test.vcxproj]
with
[
Source=int,
E=int
]
D:\a\ureact\ureact\include\ureact/detail/node_base.hpp(40,17): message : see reference to function template instantiation 'std::shared_ptr<ureact::v0::detail::event_merge_node<E,Source,E>> ureact::v0::detail::create_node<ureact::v0::detail::event_merge_node<E,Source,E>,const ureact::v0::context&,const ureact::v0::events<E>&,const ureact::v0::events<E>&>(const ureact::v0::context &,const ureact::v0::events<E> &,const ureact::v0::events<E> &)' being compiled [D:\a\ureact\build\tests\src\ureact_test.vcxproj]
with
[
Source=int,
E=int
]
D:\a\ureact\ureact\include\ureact/adaptor/merge.hpp(88,24): message : see reference to function template instantiation 'Ret ureact::v0::detail::create_wrapped_node<ureact::v0::events<E>,ureact::v0::detail::event_merge_node<E,Source,E>,const ureact::v0::context&,const ureact::v0::events<E>&,const ureact::v0::events<E>&>(const ureact::v0::context &,const ureact::v0::events<E> &,const ureact::v0::events<E> &)' being compiled [D:\a\ureact\build\tests\src\ureact_test.vcxproj]
with
[
Ret=ureact::v0::events<int>,
E=int,
Source=int
]
D:\a\ureact\ureact\tests\src\feature\default_context.cpp(37,37): message : see reference to function template instantiation 'Ret ureact::v0::detail::MergeAdaptor<void>::operator ()<E,E>(const ureact::v0::events<E> &,const ureact::v0::events<E> &) const' being compiled [D:\a\ureact\build\tests\src\ureact_test.vcxproj]
with
[
Ret=ureact::v0::events<int>,
E=int
]
// ============================================================================================================================================================
// ============================================================================================================================================================
// ============================================================================================================================================================
D:\a\ureact\ureact\include\ureact/adaptor/merge.hpp(41,62): error C2039: 'copy_events_from': is not a member of 'ureact::v0::detail::event_merge_node<E,Source,ureact::v0::unit>::update::<lambda_1>' [D:\a\ureact\build\tests\src\ureact_test.vcxproj]
with
[
Source=ureact::v0::unit
]
D:\a\ureact\ureact\include\ureact/adaptor/merge.hpp(41,98): message : see declaration of 'ureact::v0::detail::event_merge_node<E,Source,ureact::v0::unit>::update::<lambda_1>' [D:\a\ureact\build\tests\src\ureact_test.vcxproj]
with
[
Source=ureact::v0::unit
]
D:\a\ureact\ureact\include\ureact/adaptor/merge.hpp(37,45): message : while compiling class template member function 'ureact::v0::detail::update_result ureact::v0::detail::event_merge_node<E,Source,ureact::v0::unit>::update(void)' [D:\a\ureact\build\tests\src\ureact_test.vcxproj]
with
[
Source=ureact::v0::unit
]
D:\a\ureact\ureact\include\ureact/detail/node_base.hpp(29): message : see reference to class template instantiation 'ureact::v0::detail::event_merge_node<E,Source,ureact::v0::unit>' being compiled [D:\a\ureact\build\tests\src\ureact_test.vcxproj]
with
[
Source=ureact::v0::unit
]
D:\a\ureact\ureact\include\ureact/detail/node_base.hpp(40,17): message : see reference to function template instantiation 'std::shared_ptr<ureact::v0::detail::event_merge_node<E,Source,ureact::v0::unit>> ureact::v0::detail::create_node<ureact::v0::detail::event_merge_node<E,Source,ureact::v0::unit>,const ureact::v0::context&,const ureact::v0::events<ureact::v0::unit>&,const ureact::v0::events<ureact::v0::unit>&>(const ureact::v0::context &,const ureact::v0::events<ureact::v0::unit> &,const ureact::v0::events<ureact::v0::unit> &)' being compiled [D:\a\ureact\build\tests\src\ureact_test.vcxproj]
with
[
Source=ureact::v0::unit
]
D:\a\ureact\ureact\include\ureact/adaptor/merge.hpp(88,24): message : see reference to function template instantiation 'Ret ureact::v0::detail::create_wrapped_node<ureact::v0::events<ureact::v0::unit>,ureact::v0::detail::event_merge_node<E,Source,ureact::v0::unit>,const ureact::v0::context&,const ureact::v0::events<ureact::v0::unit>&,const ureact::v0::events<ureact::v0::unit>&>(const ureact::v0::context &,const ureact::v0::events<ureact::v0::unit> &,const ureact::v0::events<ureact::v0::unit> &)' being compiled [D:\a\ureact\build\tests\src\ureact_test.vcxproj]
with
[
Ret=ureact::v0::events<ureact::v0::unit>,
Source=ureact::v0::unit
]
D:\a\ureact\ureact\tests\src\events.cpp(74,40): message : see reference to function template instantiation 'Ret ureact::v0::detail::MergeAdaptor<void>::operator ()<ureact::v0::unit,ureact::v0::unit>(const ureact::v0::events<ureact::v0::unit> &,const ureact::v0::events<ureact::v0::unit> &) const' being compiled [D:\a\ureact\build\tests\src\ureact_test.vcxproj]
with
[
Ret=ureact::v0::events<ureact::v0::unit>
]
from ureact.
At least work around is quite simple. Using local lambda instead of template method:
UREACT_WARN_UNUSED_RESULT update_result update() override
{
const auto copy_events_from = [this]( const auto& src ) {
const auto& src_events = get_internals( src ).get_events();
this->get_events().insert( //
this->get_events().end(),
src_events.begin(),
src_events.end() );
};
std::apply(
[©_events_from](
const events<Values>&... sources ) { ( copy_events_from( sources ), ... ); },
m_sources );
return !this->get_events().empty() ? update_result::changed : update_result::unchanged;
}
from ureact.
Done
from ureact.
Related Issues (20)
- Consider to use or allow to use infix operators
- 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)
- First code example in doc/introduction.adoc does not compile HOT 5
- 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
- Consider making "event_source::operator<<" transaction wrapper HOT 1
- Research signal-slot library features
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.