In this section, we'll integrate the Guideline Supporting Library (gsl) to a program by modifying a makefile:
- Download and copy a gsl implementation (for example, https://github.com/microsoft/GSL).
- Copy the gsl folder into your project.
- Add the include to the makefile: -I$HOME/dev/GSL/include.
- In your source file, include #include <gsl/gsl>.
The gsl currently provides the following:
- GSL.view
- GSL.owner
- GSL.assert: Assertions
- GSL.util: Utilities
- GSL.concept: Concepts