A rough collection of code to manipulate C++ std::tuple<>s.
C++ M4 CMake Makefile Shell
Latest commit 6e6c3ff Dec 9, 2016 @murraycu Build: Tests: Use -isystem, instead of -I, for the googletest headers.
The compiler is then more forgiving of the code in the headers,
so we won't see a warning about the missing override keyword
( google/googletest#533 )
but we will still see warnings from our own code.
See https://gcc.gnu.org/onlinedocs/cpp/System-Headers.html

Thanks to Martin:
http://www.murrayc.com/permalink/2016/12/08/trying-googletest/#comment-332886

README.md

murrayc-tuple-utils

A rough collection of code to manipulate C++ std::tuple<>s.

Build Status

Basic Usage

Include the specific header. For instance,

#include <tuple-utils/tuple_end.h>

If your source file is program.cc, you can compile it with:

g++ program.cc -o program `pkg-config --cflags --libs murrayc-tuple-utils-1.0`

Using Autotools

Alternatively, if using autoconf, use the following in configure.ac:

PKG_CHECK_MODULES([DEPS], [murrayc-tuple-utils-1.0])

Then use the generated DEPS_CFLAGS and DEPS_LIBS variables in the project Makefile.am files. For example:

yourprogram_CPPFLAGS = $(DEPS_CFLAGS)
yourprogram_LDADD = $(DEPS_LIBS)

Your PKG_CHECK_MODULES() call should also mention any other libraries that you need to use via pkg-config.

Using CMake

If using CMake, use the following in CMakeList.txt:

include(FindPkgConfig)
pkg_check_modules(DEPS REQUIRED murrayc-tuple-utils-1.0)
include_directories(${DEPS_INCLUDE_DIRS})
target_link_libraries(yourprogram ${DEPS_LIBRARIES})

Your pkg_check_modules() call should also mention any other libraries that you need to use via pkg-config