sstream redeclared with public access compiler error
问题 I came across this error when running make on a large project using gcc5.4.0. /usr/include/c++/5/sstream:300:14: error: '__xfer_bufptrs' redeclared with 'public' access struct __xfer_bufptrs ^ /usr/include/c++/5/sstream:67:14: note: previously declared 'private' here struct __xfer_bufptrs; To me it seems like an issue with the compiler? Since the issue arises in a standard c++ library sstream? It does not make sense to me, am I using a wrong compiler? Here are the code snippets the error