Skip to content

MurakamiShun/struct_binder

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

struct binder

Boost::PFR like library supporting for aggregates with base class.

  • example
#include <iostream>
#include "struct_binder.hpp"

struct Base{};

struct Derived : Base{
    int a,b,c;
};

int main(){
    Derived d = {{}, 0, 1, 2};
    struct_binder::get<0>(d) = 10;
    std::cout << d.a << std::endl;
}

License

This software is released under the MIT License, see LICENSE.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages