Skip to content

create_at with uvalue parameters #124

Answered by BlackMATov
MineBill asked this question in Q&A
Discussion options

You must be logged in to vote

The main nuance that should be taken into account with overloaded methods and constructors is that the library does not support the correct determination of the required overload based on the parameters passed. In this regard, the library will simply try to call available constructors one by one until it succeeds.

You can get a suitable constructor using the get_constructor_with method which will try to find a constructor with the required parameters (without conversion), or just call create to try to call them one by one. It's up to you.

https://gcc.godbolt.org/z/v5sEd585T

#include <https://raw.githubusercontent.com/BlackMATov/meta.hpp/refs/heads/main/develop/singles/headers/meta.hpp/met…

Replies: 1 comment 5 replies

Comment options

You must be logged in to vote
5 replies
@MineBill
Comment options

@BlackMATov
Comment options

@MineBill
Comment options

@BlackMATov
Comment options

Answer selected by MineBill
@MineBill
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants