mirror of
https://github.com/fastfloat/fast_float.git
synced 2026-01-01 03:12:18 +08:00
fix: never include iostream unless it's absolutely necessary
This commit is contained in:
parent
caade69916
commit
e65f977135
@ -10,7 +10,6 @@
|
||||
#include <cstdio>
|
||||
#include <cstdlib>
|
||||
#include <cstring>
|
||||
#include <iostream>
|
||||
|
||||
namespace fast_float {
|
||||
|
||||
|
||||
@ -363,8 +363,8 @@ constexpr int binary_format<float>::smallest_power_of_ten() {
|
||||
} // namespace fast_float
|
||||
|
||||
// for convenience:
|
||||
#include <ostream>
|
||||
inline std::ostream &operator<<(std::ostream &out, const fast_float::decimal &d) {
|
||||
template<class OStream>
|
||||
inline OStream& operator<<(OStream &out, const fast_float::decimal &d) {
|
||||
out << "0.";
|
||||
for (size_t i = 0; i < d.num_digits; i++) {
|
||||
out << int32_t(d.digits[i]);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user