Skip to content

Instantly share code, notes, and snippets.

@takashyx
takashyx / Cout2VisualStudioDebugOutput.h
Last active June 23, 2022 05:15
Redirect std::cout to Visual Studio Debug Output
#pragma once
#include <iostream>
#include <Windows.h>
class debugStreambuf : public std::streambuf {
public:
virtual int_type overflow(int_type c = EOF) {
if (c != EOF) {