MCPcopy Create free account
hub / github.com/CLIUtils/CLI11 / main

Function main

tests/informational.cpp:15–56  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

13#include <iostream>
14
15int main() {
16 std::cout << "\nCLI11 information:\n";
17
18 std::cout << " C++ standard: ";
19#if defined(CLI11_CPP20)
20 std::cout << 20;
21#elif defined(CLI11_CPP17)
22 std::cout << 17;
23#elif defined(CLI11_CPP14)
24 std::cout << 14;
25#else
26 std::cout << 11;
27#endif
28 std::cout << "\n";
29
30 std::cout << " __has_include: ";
31#ifdef __has_include
32 std::cout << "yes\n";
33#else
34 std::cout << "no\n";
35#endif
36
37#if CLI11_OPTIONAL
38 std::cout << " [Available as CLI::optional]";
39#else
40 std::cout << " No optional library found\n";
41#endif
42
43#if CLI11_STD_OPTIONAL
44 std::cout << " std::optional support active\n";
45#endif
46
47#if CLI11_EXPERIMENTAL_OPTIONAL
48 std::cout << " std::experimental::optional support active\n";
49#endif
50
51#if CLI11_BOOST_OPTIONAL
52 std::cout << " boost::optional support active\n";
53#endif
54
55 std::cout << '\n';
56}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected