matt-42/iod
View on GitHub ↗ ★ 725 C++
Meta programming utilities for C++14. Merged in matt-42/lithium
12 mentions on Hacker News by 2 people: 6 stories, 6 comments · first 2014-05-07 · latest 2020-08-29
20082026
-
…the design of? What C++ codebases do you like or find interesting from a design perspective? [1] https://github.com/matt-42/iod (merged into Lithium) [2] https://github.com/matt-42/silicon
comment by sitkack · 2020-08-29 · in Lithium ranked the highest performance web application platform -
…me, and you can go over the problem of the weirdly named one-off struct by using the iod library ( https://github.com/matt-42/iod ): foo() { return D(_id = "test", _age = "42" }; } auto r = foo(); std::cout << r.id << r.age << std::endl;
comment by matt42 · 2016-03-07 · in Returning multiple values from functions in C++ -
…it to plain C++. In short, their are empty objects holding a unique C++ type. More info here: https://github.com/matt-42/iod
comment by matt42 · 2015-01-19 · in Show HN: The Silicon C++14 Web Framework -
The source code is here, interesting if you enjoy c++14 meta programming: https://github.com/matt-42/iod/blob/master/iod/di.hh
comment by matt42 · 2015-01-04 · in Non Intrusive Static Recursive Dependency Injection for C++14 -
…iod library makes iterating on the members of an sio object trivial with the foreach primitive (see https://github.com/matt-42/iod/blob/master/iod/json.hh#L417 ) so generating a serializer / deserializer like this one is not so complicated…
comment by matt42 · 2014-11-15 · in Show HN: A Fast, Malloc-Free C++14 Json Parser and Encoder -
…symplifies (a lot) the writting of such abstractions. The object model is only 100 lines of C++11: https://github.com/matt-42/iod/blob/master/iod.hh
comment by matt42 · 2014-05-07 · in Show HN: C++11 inline object definitions