xtd 0.2.0
Loading...
Searching...
No Matches
get_err_rdbuf.hpp
Go to the documentation of this file.
1
4#pragma once
5#include <iostream>
6
8template<class char_t>
9inline std::basic_streambuf<char_t>* __get_err_rdbuf() {return nullptr;}
10
11template<>
12inline std::basic_streambuf<char>* __get_err_rdbuf<char>() {
13 static std::basic_streambuf<char>* rdbuf = std::cerr.rdbuf();
14 return rdbuf;
15}
16
17template<>
18inline std::basic_streambuf<wchar_t>* __get_err_rdbuf<wchar_t>() {
19 static std::basic_streambuf<wchar_t>* rdbuf = std::wcerr.rdbuf();
20 return rdbuf;
21}