From a1d45e2f6971452fae9dcfb96ee00e8ecea9143c Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Thu, 18 Aug 2016 15:45:49 +0200 Subject: Fix invisible inline function issue --- build2/cc/types | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'build2/cc/types') diff --git a/build2/cc/types b/build2/cc/types index 9cacc60..d512da2 100644 --- a/build2/cc/types +++ b/build2/cc/types @@ -16,8 +16,11 @@ namespace build2 // enum class lang {c, cxx}; - ostream& - operator<< (ostream&, lang); // utility.ixx + inline ostream& + operator<< (ostream& os, lang l) + { + return os << (l == lang::c ? "C" : "C++"); + } // Compile/link output type (executable, static, or shared). // -- cgit v1.1