Apparently missing overload of getline() taking RRef to stream in GCC 4.7.2 and Clang 3.2

*爱你&永不变心* 提交于 2019-12-01 20:36:50

If I compile on OS X with the following line, it compiles successfully. What version of the libstdc++ or libc++ are you using?

clang++ -std=c++11 -stdlib=libc++ foo.cc

libstdc++ (and libc++ for that matter) do not yet fully implement the C++ 2011 standard library. This appears to be one of the missing functions from libstdc++.

Sadly, I don't know of any resource that lists exactly what is missing from each implementation.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!