Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add description how to handle user types #81

Open
Flamefire opened this issue Dec 2, 2017 · 0 comments
Open

Add description how to handle user types #81

Flamefire opened this issue Dec 2, 2017 · 0 comments

Comments

@Flamefire
Copy link
Contributor

Flamefire commented Dec 2, 2017

The example for adding custom types using std::string is not really helpful.

Could you add an example how to create the correct type_traits for a custom struct?

Example:

struct Foo{
    int bar;
    std::string sBar;
    float fBar;
    std::vector<int> vBar;
};

Or maybe simpler:

struct Point{
    int x, y;
};

Related to #41

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant