From 4d9294cb1fd72eb995e69708f22346f73b905a38 Mon Sep 17 00:00:00 2001 From: Antony Polukhin Date: Thu, 10 Jun 2021 18:47:18 +0300 Subject: [PATCH] final polishings for of boost-free version --- README.md | 2 ++ misc/strip_boost_namespace.sh | 3 ++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 11941db..b5399a5 100644 --- a/README.md +++ b/README.md @@ -4,6 +4,8 @@ This is a C++14 library for very basic reflection that gives you access to struc Boost.PFR is a part of the [Boost C++ Libraries](https://github.com/boostorg). However, Boost.PFR is a header only library that does not depend on Boost. You can just copy the content of the "include" folder from the github into your project, and the library will work fine. +For a version of the library without `boost::` namespace see https://github.com/apolukhin/pfr_non_boost + ### Test results Branches | Build | Tests coverage | More info diff --git a/misc/strip_boost_namespace.sh b/misc/strip_boost_namespace.sh index 204ab90..9134ca1 100755 --- a/misc/strip_boost_namespace.sh +++ b/misc/strip_boost_namespace.sh @@ -33,10 +33,11 @@ find ${TARGET_PATH} -type f | xargs sed -i 's/boost::pfr/pfr/g' find ${TARGET_PATH} -type f | xargs sed -i 's/BOOST_PFR_/PFR_/g' find ${TARGET_PATH} -type f | xargs sed -i 's|boost/pfr|pfr|g' -find ${TARGET_PATH}/doc -type f | xargs sed -i '/\[xinclude autodoc_pfr.xml\]/d' find ${TARGET_PATH}/doc -type f | xargs sed -i 's|boost.pfr.|pfr.|g' find ${TARGET_PATH}/doc -type f | xargs sed -i 's|Boost.PFR|PFR|g' +sed -i 's|# \[Boost.PFR\](https://boost.org/libs/pfr)|# [PFR](https://apolukhin.github.io/pfr_non_boost/)|g' ${TARGET_PATH}/README.md + echo -n "***** Testing: " if g++-9 -std=c++17 -DPFR_USE_LOOPHOLE=0 -DPFR_USE_CPP17=1 -I ${TARGET_PATH}/include/ ${TARGET_PATH}/example/motivating_example0.cpp && ./a.out > /dev/null; then echo -n "OK"