Commit 990adfef authored by Roland Levillain's avatar Roland Levillain
Browse files

Get rid of mutable references, rejected by g++ since version 4.6.

	* src/task/boolean_task.hh (task::BooleanTask::flag_)
	* src/task/int_task.hh (task::IntTask::var_):
	Here.
	Reported by Theophile Ranquet <theophile.ranquet@epita.fr>.
parent b1ba162c
2012-05-22 Roland Levillain <roland@lrde.epita.fr>
Get rid of mutable references, rejected by g++ since version 4.6.
* src/task/boolean_task.hh (task::BooleanTask::flag_)
* src/task/int_task.hh (task::IntTask::var_):
Here.
Reported by Theophile Ranquet <theophile.ranquet@epita.fr>.
2012-03-19 Roland Levillain <roland@lrde.epita.fr>
Update the address of the FSF in the text of the GNU FDL.
......
//
// This file is part of Nolimips, a MIPS simulator with unlimited registers
// Copyright (C) 2004, 2006 Akim Demaille <akim@epita.fr> and
// Benoit Perrot <benoit@lrde.epita.fr>
// Copyright (C) 2004, 2006, 2012 Akim Demaille <akim@epita.fr> and
// Benoit Perrot <benoit@lrde.epita.fr>
//
// Nolimips is free software; you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
......@@ -36,7 +36,7 @@ namespace task
virtual void execute() const;
private:
mutable bool &flag_;
bool &flag_;
};
} // namespace task
......
//
// This file is part of Nolimips, a MIPS simulator with unlimited registers
// Copyright (C) 2004, 2006 Akim Demaille <akim@epita.fr> and
// Benoit Perrot <benoit@lrde.epita.fr>
// Copyright (C) 2004, 2006, 2012 Akim Demaille <akim@epita.fr> and
// Benoit Perrot <benoit@lrde.epita.fr>
//
// Nolimips is free software; you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
......@@ -40,7 +40,7 @@ namespace task
private:
mutable int value_;
mutable int &var_;
int &var_;
int min_;
int max_;
};
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment