predelnik / any_with_traits Goto Github PK
View Code? Open in Web Editor NEWProof-of-concept class for doing type erasure while preserving certain traits e.g. ability to be copied or moved. Similar to boost::type_erasure::any
License: MIT License
Proof-of-concept class for doing type erasure while preserving certain traits e.g. ability to be copied or moved. Similar to boost::type_erasure::any
License: MIT License
[ 14%] Building CXX object test/CMakeFiles/any_with_traits_test.dir/gtest-all.cc.o
[ 28%] Building CXX object test/CMakeFiles/any_with_traits_test.dir/test.cpp.o
/home/xmly/thirdparty/any_with_traits/test/test.cpp: In member function ?.irtual void any_all_Test::TestBody()?.
/home/xmly/thirdparty/any_with_traits/test/test.cpp:157:13: error: converting to ?.td::__cxx11::basic_stringstream?.from initializer list would use explicit constructor ?.td::__cxx11::basic_stringstream<_CharT, _Traits, _Alloc>::basic_stringstream(const __string_type&, std::ios_base::openmode) [with _CharT = char; _Traits = std::char_traits; _Alloc = std::allocator; std::__cxx11::basic_stringstream<_CharT, _Traits, _Alloc>::__string_type = std::__cxx11::basic_string; std::ios_base::openmode = std::_Ios_Openmode]?
ss = {""};
^
In file included from /home/xmly/thirdparty/any_with_traits/test/test.cpp:2:0:
/home/xmly/thirdparty/any_with_traits/test/../src/any_with_traits.h: In instantiation of ?.wt::detail::any_t::any_t(awt::detail::any_t::self&&) [with Traits = {any_trait::destructible}; awt::detail::any_t::self = awt::detail::any_t<any_trait::destructible>]?.
/home/xmly/thirdparty/any_with_traits/test/test.cpp:131:21: required from here
/home/xmly/thirdparty/any_with_traits/test/../src/any_with_traits.h:689:5: error: static assertion failed: class move construction is prohibited due to lack of movable trait
static_assert(
^~~~~~~~~~~~~
/home/xmly/thirdparty/any_with_traits/test/../src/any_with_traits.h:692:11: error: ?.lass awt::detail::any_t<any_trait::destructible>?.has no member named ?.ove_from?
this->move_from(std::move(other));
~~~~~~^~~~~~~~~
/home/xmly/thirdparty/any_with_traits/test/../src/any_with_traits.h: In instantiation of ?.wt::detail::any_t::any_t(awt::detail::any_t::self&&) [with Traits = {any_trait::destructible, any_trait::ostreamable}; awt::detail::any_t::self = awt::detail::any_t<any_trait::destructible, any_trait::ostreamable>]?.
/home/xmly/thirdparty/any_with_traits/test/test.cpp:152:42: required from here
/home/xmly/thirdparty/any_with_traits/test/../src/any_with_traits.h:689:5: error: static assertion failed: class move construction is prohibited due to lack of movable trait
static_assert(
^~~~~~~~~~~~~
/home/xmly/thirdparty/any_with_traits/test/../src/any_with_traits.h:692:11: error: ?.lass awt::detail::any_t<any_trait::destructible, any_trait::ostreamable>?.has no member named ?.ove_from?
this->move_from(std::move(other));
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.