/// @file /// @brief Task1: tests (support for C++20 standard) #include // assert #include // std::filesystem::path #include // std::ofstream #include // std::cout|endl #include // std::istringstream #include // https://en.cppreference.com/w/cpp/utility/feature_test #include "iue-io/csv.hpp" // https://sgit.iue.tuwien.ac.at/360050/modules int main() { std::ostringstream oss; oss << "This compilation unit was compiled" << std::endl; oss << " - on " << __DATE__ << " at " << __TIME__ << std::endl; oss << " - using the C++ language standard " << __cplusplus << std::endl; oss << " - the main-function was present in this file: " << __FILE__ << std::endl; std::filesystem::path filename = "info_cpp.txt"; std::ofstream ofs(filename); ofs.exceptions(std::ios::failbit); ofs << oss.str(); assert(__cplusplus >= 202002L); assert(__cpp_lib_filesystem >= 201703L); assert(__cpp_concepts >= 201907L); std::cout << "task1.test.cpp: all asserts passed" << std::endl; return 0; }