cpp-utilities/feature_detection/stdio_filebuf.cpp
Martchus 749eea2ab6 Support NativeFileStream via Boost.Iostreams
So it can also be enabled when not using libstdc++.
2018-09-30 13:55:30 +02:00

11 lines
247 B
C++

// assume __gnu_cxx::stdio_filebuf is available if this program compiles
#include <ext/stdio_filebuf.h>
#include <iostream>
int main() {
const int fd = 0;
__gnu_cxx::stdio_filebuf<char> buf(fd, std::ios_base::in);
return buf.fd();
}