From 36003197c7105d4b61b3e089c9a3efc969b68dcf Mon Sep 17 00:00:00 2001 From: Zhihao Yuan Date: Fri, 22 Nov 2019 15:33:15 -0600 Subject: [PATCH] Fix print_help for printing nothing --- include/argparse.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/argparse.hpp b/include/argparse.hpp index 771a54c..de17c04 100644 --- a/include/argparse.hpp +++ b/include/argparse.hpp @@ -515,8 +515,8 @@ public: } // Format help message - auto help() const -> std::ostringstream { - std::ostringstream out; + auto help() const -> std::stringstream { + std::stringstream out; out << *this; return out; }