From be069197badf2dbc08d8c82d9ce7d17b72078ea4 Mon Sep 17 00:00:00 2001 From: Nathan Braswell Date: Mon, 3 Aug 2015 18:56:03 -0400 Subject: [PATCH] Make the templateFunctionLookup function spit out on cout instead of cerr since it's not always an error now and it screws up the output on the website. Now the error's not visiable, I guess, but it just needs to work a bit better till the rewrite is finished --- src/ASTTransformation.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/ASTTransformation.cpp b/src/ASTTransformation.cpp index f4a711c..0d8a125 100644 --- a/src/ASTTransformation.cpp +++ b/src/ASTTransformation.cpp @@ -1319,14 +1319,14 @@ NodeTree* ASTTransformation::templateFunctionLookup(NodeTree* std::cout << "Current function fits, satisfying " << currentTraitsSatisfied << " traits" << std::endl; } if (!mostFittingTemplates.size()) { - std::cerr << "No template functions fit for " << lookup << "("; + std::cout << "No template functions fit for " << lookup << "("; for (auto t : types) - std::cerr << t.toString() + ", "; - std::cerr << ")!" << std::endl; - std::cerr << "in file " << getUpperTranslationUnit(scope)->getDataRef()->symbol.getName() << std::endl; + std::cout << t.toString() + ", "; + std::cout << ")!" << std::endl; + std::cout << "in file " << getUpperTranslationUnit(scope)->getDataRef()->symbol.getName() << std::endl; throw "No matching template functions"; } else if (mostFittingTemplates.size() > 1) { - std::cerr << "Multiple template functions fit with equal number of traits satisfied for " << lookup << "!" << std::endl; + std::cout << "Multiple template functions fit with equal number of traits satisfied for " << lookup << "!" << std::endl; throw "Multiple matching template functions"; } // Assign our most fitting instantiation types to what we were passed in