[Mobies-commit] [commit] r3722 - GReAT/trunk/Libraries/GRCC
ksmyth at redhat1.isis.vanderbilt.edu
ksmyth at redhat1.isis.vanderbilt.edu
Tue May 3 12:10:21 CDT 2011
Author: ksmyth
Date: Tue May 3 12:10:21 2011
New Revision: 3722
Log:
using namespace std in generated code
Modified:
GReAT/trunk/Libraries/GRCC/GRCGenOps.cpp
GReAT/trunk/Libraries/GRCC/GRCPrinter.cpp
Modified: GReAT/trunk/Libraries/GRCC/GRCGenOps.cpp
==============================================================================
--- GReAT/trunk/Libraries/GRCC/GRCGenOps.cpp Mon May 2 17:04:49 2011 (r3721)
+++ GReAT/trunk/Libraries/GRCC/GRCGenOps.cpp Tue May 3 12:10:21 2011 (r3722)
@@ -47,6 +47,7 @@
std::ofstream gen_def( (GreatTempPath+ filenamebase+ ".def").c_str(), std::ios_base::out | std::ios_base::app);
// print #include code
genops_cpp << "#include \"" << filenamebase << "_genops.h\"" << endl << endl;
+ genops_h << "namespace std {}; using namespace std;" << endl << endl; // cmp func templates
genops_h << "#include \"" << filenamebase << "_cmptempl.h\"" << endl << endl; // cmp func templates
genops_h << "#include \"" << filenamebase << "_inc.h\"" << endl << endl; // UDM domain specific API includes
// print specialized cmp functions
Modified: GReAT/trunk/Libraries/GRCC/GRCPrinter.cpp
==============================================================================
--- GReAT/trunk/Libraries/GRCC/GRCPrinter.cpp Mon May 2 17:04:49 2011 (r3721)
+++ GReAT/trunk/Libraries/GRCC/GRCPrinter.cpp Tue May 3 12:10:21 2011 (r3722)
@@ -20,6 +20,7 @@
_headerfile.open( headerfilename.c_str());
// print #include-s
_headerfile << "#include \"Uml.h\"\n";
+ _headerfile << "using namespace std;\n";
_deffile << "EXPORTS\n";
_cppfile << "#include \""+ dropPath( headerfilename) + "\"\n";
_cppfile << "#include \""+ dropPath( includefilename) + "\"\n";
More information about the Mobies-commit
mailing list