Post

Replies

Boosts

Views

Activity

Error: No member named 'trunc' in namespace 'std'
I have just included in my code and I am getting error /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/c++/v1/__random/poisson_distribution.h:145:23 No member named 'trunc' in namespace 'std' #include <cmath> #include <iostream> #include <random> using namespace std; int main() { std::cout << "Hello I am " << __cplusplus << std::endl; return 0; }
3
0
1.2k
May ’23