Skip to content

Custom Data Types #10

Answered by d-frey
MikeBakerCZ asked this question in Q&A
Discussion options

You must be logged in to vote

Yes, I recently started to refactor some parameter-traits (now going for leaving a choice between text-based and binary-based parameter traits). It's not yet finished, but check out the example at

namespace example
{
class user
{
private:
int a, b, c, d;
public:
explicit user( int i )
: a( i ), b( i + 1 ), c( i + 2 ), d( i + 3 )
{}
[[nodiscard]] auto to_taopq_param() const noexcept
{
return std::tie( a, b, c, d );
}
};
struct user2
{
int a, b, c, d;
explicit user2( int i )
: a( i ), b( i + 1 ), c( i + 2 ), d( …

Replies: 6 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by d-frey
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants
Converted from issue

This discussion was converted from issue #10 on December 20, 2020 19:35.