| 92 | } |
| 93 | |
| 94 | std::vector<std::string> GetPlatformDetails() { |
| 95 | std::vector<std::string> platform; |
| 96 | #if BOOST_VERSION >= 105500 |
| 97 | |
| 98 | // Check OS |
| 99 | #if BOOST_OS_BSD |
| 100 | platform.push_back("BSD"); |
| 101 | #elif BOOST_OS_LINUX |
| 102 | platform.push_back("Linux"); |
| 103 | #elif BOOST_OS_MACOS |
| 104 | platform.push_back("Mac OS"); |
| 105 | #elif BOOST_OS_WINDOWS |
| 106 | platform.push_back("Windows"); |
| 107 | #else |
| 108 | platform.push_back("Unknown OS"); |
| 109 | #endif |
| 110 | |
| 111 | // Check arch |
| 112 | #if BOOST_ARCH_X86_32 |
| 113 | platform.push_back("x86"); |
| 114 | #elif BOOST_ARCH_X86_64 |
| 115 | platform.push_back("x86_64"); |
| 116 | #elif BOOST_ARCH_ARM |
| 117 | platform.push_back("arm"); |
| 118 | #else |
| 119 | platform.push_back("Unknown arch"); |
| 120 | #endif |
| 121 | return platform; |
| 122 | #else // too old boost |
| 123 | return std::vector<std::string>(); |
| 124 | #endif |
| 125 | } |
| 126 | |
| 127 | std::string FormatFullVersion() |
| 128 | { |
no test coverage detected