aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2016-08-18 15:45:49 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2016-08-18 15:45:49 +0200
commita1d45e2f6971452fae9dcfb96ee00e8ecea9143c (patch)
treee00b07e3bd92b92f85abb31ef3de147a58801d36
parent3fcf4d75b8ce134c2d771cf428a249977cfdf962 (diff)
Fix invisible inline function issue
-rw-r--r--build2/cc/types7
-rw-r--r--build2/cc/utility.ixx6
2 files changed, 5 insertions, 8 deletions
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).
//
diff --git a/build2/cc/utility.ixx b/build2/cc/utility.ixx
index e7eb565..dda74eb 100644
--- a/build2/cc/utility.ixx
+++ b/build2/cc/utility.ixx
@@ -6,12 +6,6 @@ namespace build2
{
namespace cc
{
- inline ostream&
- operator<< (ostream& os, lang l)
- {
- return os << (l == lang::c ? "C" : "C++");
- }
-
inline otype
compile_type (target& t)
{