Use some C++17 features

This commit is contained in:
ReinUsesLisp 2018-10-03 00:32:45 -03:00
parent 45555c0e57
commit 0485e1877c
20 changed files with 170 additions and 245 deletions

View file

@ -4,8 +4,8 @@
* Lesser General Public License version 2.1 or any later version.
*/
#include <cassert>
#include "operand.h"
#include <cassert>
namespace Sirit {
@ -22,16 +22,12 @@ u16 Operand::GetWordCount() const {
return 0;
}
bool Operand::operator==(const Operand& other) const {
return false;
}
bool Operand::operator==(const Operand& other) const { return false; }
bool Operand::operator!=(const Operand& other) const {
return !(*this == other);
}
OperandType Operand::GetType() const {
return operand_type;
}
OperandType Operand::GetType() const { return operand_type; }
} // namespace Sirit