Skip to content

Instantly share code, notes, and snippets.

View daminetreg's full-sized avatar
tipi.build

Damien Buhl daminetreg

tipi.build
View GitHub Profile
#include <iostream>
#include <pre/json/from_json.hpp>
struct tool {
std::string url;
std::string sha1;
std::string root;
@daminetreg
daminetreg / for_each_member.hpp
Last active June 8, 2023 07:24
Boost.Fusion BOOST_FUSION_ADAPT_STRUCT : print each member names of a Boost.Fusion adapted struct.
/**
* \brief Allows iteration on member name and values of a Fusion adapted struct.
*
*
* BOOST_FUSION_ADAPT_STRUCT(ns::point,
* (int, x)
* (int, y)
* (int, z));
*
* template<class T>
@daminetreg
daminetreg / patchProtectedPrivateMethodLibReflexCpp.diff
Created February 2, 2011 15:28
This patch allows to generate reflex dictionary of C++ types with the protected and private method informations too. The dictionnary informations (YourClass_rflx.cpp) have to be compiled with g++ -fno-access-control to let it access protected and public
Index: python/genreflex/gendict.py
===================================================================
--- python/genreflex/gendict.py (revision 37933)
+++ python/genreflex/gendict.py (working copy)
@@ -691,9 +691,9 @@
#----Filter any non-public data members for minimal interpreter dict -----
if self.interpreter and elem in ('Field') and 'access' in attrs : # assumes that the default is "public"
return 0
- #----Filter any non public method
+ #----Filter any non public Constructor, Desctructor or Converter