#include <iostream>
#include <string>
#include <sstream>
//#include <bits/stdc++.h>
#include <iomanip> // std::setprecision
#include <math.h>
using namespace std;
I want to remove the header #include <bits/stdc++.h>
, because it significantly slows down my compile time.
When I remove it, I get the following error:
error: cannot convert ‘long double*’ to ‘double*’ for argument ‘2’ to ‘double modf(double, double*)’
fractpart = modf(val, &intpart);
I think the problem is with a missing header file, but have no clue which one it is.
The code I'm getting the error for is:
fractpart = modf(val, &intpart);
if (fractpart != 0) {
throw Error("ERR");
}