Skip to content
Snippets Groups Projects
Commit cf7b55cf authored by Thimo Neubauer's avatar Thimo Neubauer
Browse files

g++ 4.0 didn't like anonymous and local enum

[[Imported from SVN: r2165]]
parent a9ef77ac
No related branches found
No related tags found
No related merge requests found
......@@ -13,6 +13,9 @@
#include <dune/common/stdstreams.hh>
// enums are a nice special case (was a bug)
enum check { VALUE = 5 };
int main () {
try {
// let output happen but vanish
......@@ -22,8 +25,6 @@ int main () {
Dune::derr.push(true);
Dune::derr << "Teststring" << std::endl;
// enums are a nice special case (was a bug)
enum { VALUE = 5 };
Dune::derr << VALUE << std::endl;
// instantiate private stream and connect global stream
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment