Skip to content

Commit 2145f5e

Browse files
committed
std::defaultfloat not available everywhere somehow
1 parent e341b99 commit 2145f5e

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

native/common.hpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -420,7 +420,8 @@ void print_numeric_table(dm::NumericTablePtr X_nt, std::string label) {
420420
}
421421
std::cout << std::endl;
422422
}
423-
std::cout << std::setprecision(prec) << std::defaultfloat;
423+
std::cout << std::setprecision(prec);
424+
std::cout.unsetf(std::ios_base::floatfield);
424425

425426
X_nt->releaseBlockOfRows(blockX);
426427

native/dbscan_bench.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,8 @@ int main(int argc, char *argv[]) {
110110
int n_clusters = n_clusters_block.getBlockPtr()[0];
111111
n_clusters_nt->releaseBlockOfRows(n_clusters_block);
112112

113-
std::cout << meta_info << "DBSCAN," << n_clusters << time << std::endl;
113+
std::cout << meta_info << "DBSCAN," << n_clusters << ',' << time
114+
<< std::endl;
114115

115116
return 0;
116117
}

0 commit comments

Comments
 (0)