File tree Expand file tree Collapse file tree 2 files changed +8
-2
lines changed
Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -163,7 +163,7 @@ int main()
163163 << std::endl;
164164 start = end;
165165 for (size_t i = 0 ; i < probe_size; ++i) {
166- sum += objects[i].get <Int>(col2);
166+ sum = sum + objects[i].get <Int>(col2);
167167 }
168168 end = std::chrono::steady_clock::now ();
169169 diff = end - start;
Original file line number Diff line number Diff line change @@ -117,9 +117,15 @@ TEST(Utils_File_dir)
117117
118118TEST (Utils_File_dir_unicode)
119119{
120+ #if __cplusplus < 202002L
120121 using std::filesystem::u8path;
122+ #else
123+ auto u8path = [](const std::string& str) {
124+ return std::filesystem::path (reinterpret_cast <const char8_t *>(str.c_str ()));
125+ };
126+ #endif
121127
122- constexpr char all_the_unicode[] = u8" фоо-бар Λορεμ ლორემ 植物 החלל جمعت søren" ;
128+ const char * all_the_unicode = ( const char *) u8" фоо-бар Λορεμ ლორემ 植物 החלל جمعت søren" ;
123129 std::string dir_name = File::resolve (all_the_unicode, test_util::get_test_path_prefix ());
124130
125131 // Create directory
You can’t perform that action at this time.
0 commit comments