Comments (1)
This is the code to add :
namespace std
{
template< kumi::product_type TTuple,kumi::product_type UTuple
, template<class> class TQual, template<class> class UQual
, typename Indexer = std::make_index_sequence<kumi::size_v<TTuple>>
>
struct make_basic_common_ref;
template< kumi::product_type TTuple,kumi::product_type UTuple
, template<class> class TQual, template<class> class UQual
, std::size_t... I
>
struct make_basic_common_ref<TTuple,UTuple,TQual,UQual
, std::index_sequence<I...>
>
{
using type = kumi::tuple<std::common_reference_t< TQual<std::tuple_element_t<I,TTuple>>
, UQual<std::tuple_element_t<I,UTuple>>
>...
>;
};
template< kumi::product_type TTuple,kumi::product_type UTuple
, template<class> class TQual, template<class> class UQual >
requires( kumi::size_v<TTuple> == kumi::size_v<UTuple>)
struct basic_common_reference<TTuple, UTuple, TQual, UQual>
: make_basic_common_ref<TTuple,UTuple,TQual,UQual>
{};
}
but looks like kumi::tuple
constructor is not enough. Alas, I can't add it or I won't be aggregate anymore.
Will see how to do that
from kumi.
Related Issues (20)
- [BUG] kumi::cat does not retain cv-ref qualifiers HOT 2
- [BUG] const tuple of non const reference can't be assigned
- Named tuple
- [FEATURE] cartesian_product
- Sanitize the CMakelists.txt HOT 1
- Add back(t)/front(t)
- [FEATURE] add inner_product
- [FEATURE] reverse
- [FEATURE] Make split and extract free functions
- [FEATURE] Lazy tuple algorithm
- feature request: optional KUMI_HOST_DEVICE macro for CUDA HOT 2
- [kumi] specialized/fastpath standard cpp fold HOT 1
- [BUG] Delete != maybe? HOT 1
- [FEATURE] make apply sfinae friendly HOT 1
- [BUG] Spurious warning when using iota with signed integers as seed
- [FEATURE] kumi::fold_left/kumi::fold_right to have no init versions. kumi::reduce HOT 5
- [FEATURE] Consider [[no_unique_address]] on members for better EBO HOT 1
- [BUG] type computation in cat
- Incompatibility with std::tuple in `tuple<int&>` assignments
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 kumi.