From: Axel Naumann Date: Sun, 14 Sep 2014 21:32:36 +0000 (+0200) Subject: Support inline namespaces; fixes MacOS crash. X-Git-Tag: v6-02-00-rc1~125 X-Git-Url: https://root.cern.ch/gitweb?p=root.git;a=commitdiff_plain;h=2069121d1c83ea29873aa8a5acc3128f19570fa7 Support inline namespaces; fixes MacOS crash. --- diff --git a/core/meta/src/TCling.cxx b/core/meta/src/TCling.cxx index 16be679..f6c2c62 100644 --- a/core/meta/src/TCling.cxx +++ b/core/meta/src/TCling.cxx @@ -1427,7 +1427,8 @@ void TCling::RegisterModule(const char* modulename, std::istringstream fwdDeclsCodeStr(fwdDeclsCode); std::vector scope; while (std::getline(fwdDeclsCodeStr, fwdDeclsLine)) { - if (fwdDeclsLine.find("namespace ") == 0) { + if (fwdDeclsLine.find("namespace ") == 0 + || fwdDeclsLine.find("inline namespace ") == 0) { // skip leading "namespace ", trailing " {" scope.push_back(fwdDeclsLine.substr(10, fwdDeclsLine.length() - 10 - 2));