1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56
|
// Copyright (c) 2017-2021, University of Cincinnati, developed by Henry Schreiner
// under NSF AWARD 1414736 and by the respective contributors.
// All rights reserved.
//
// SPDX-License-Identifier: BSD-3-Clause
#ifdef CLI11_SINGLE_FILE
#include "CLI11.hpp"
#else
#include "CLI/CLI.hpp"
#endif
#include <iostream>
int main() {
std::cout << "\nCLI11 information:\n";
std::cout << " CPP standard ver: ";
#if defined(CLI11_CPP20)
std::cout << 20;
#elif defined(CLI11_CPP17)
std::cout << 17;
#elif defined(CLI11_CPP14)
std::cout << 14;
#else
std::cout << 11;
#endif
std::cout << "\n";
std::cout << " __has_include: ";
#ifdef __has_include
std::cout << "yes\n";
#else
std::cout << "no\n";
#endif
#if CLI11_OPTIONAL
std::cout << " [Available as CLI::optional]";
#else
std::cout << " No optional library found\n";
#endif
#if CLI11_STD_OPTIONAL
std::cout << " std::optional support active\n";
#endif
#if CLI11_EXPERIMENTAL_OPTIONAL
std::cout << " std::experimental::optional support active\n";
#endif
#if CLI11_BOOST_OPTIONAL
std::cout << " boost::optional support active\n";
#endif
std::cout << std::endl;
}
|