From f630d4690e198833c32563d0ad5ca7eb3b70f2c9 Mon Sep 17 00:00:00 2001 From: Txema Ynzenga Date: Mon, 25 Dec 2023 22:42:33 +0100 Subject: [PATCH] Add relative include info to README.md --- README.md | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/README.md b/README.md index 7a6c3f59..9f1b602f 100644 --- a/README.md +++ b/README.md @@ -483,6 +483,22 @@ To run the tests, do the following: ./build/tests/xml/reflect-cpp-xml-tests ``` +## How to contribute + +### Make sure includes are relative + +In order for the library to be able to function header-only, we need internal includes to be relative and not depend on any externally set include directory. + +That is, for example, if you are within any file in `rfl/internal`, prefer +```cpp +#include "to_ptr_named_tuple.hpp" +``` +over +```cpp +#include "rfl/internal/to_ptr_named_tuple.hpp" +``` +For further details and reasoning, please refer to [#30](https://github.com/getml/reflect-cpp/issues/30). + ## Related projects reflect-cpp was originally developed for [getml-community](https://github.com/getml/getml-community), the fastest open-source tool for feature engineering on relational data and time series. If you are interested in Data Science and/or Machine Learning, please check it out.