Merge: new class MErrorType to handle buggy types
authorJean Privat <jean@pryen.org>
Tue, 9 Aug 2016 23:46:26 +0000 (19:46 -0400)
committerJean Privat <jean@pryen.org>
Tue, 9 Aug 2016 23:46:26 +0000 (19:46 -0400)
commitcc7621368e81eae1c80c9d52a19875f4dbab98cb
tree2b29a352eb5cefbaf1a8572ff9f0355ffad6229b
parent8d7d8291b864b3f9215e6ccdafa7202e5b6de023
parent60c2e1726475c2e61ccc7ab5cf7bba6be9503b0d
Merge: new class MErrorType to handle buggy types

This is a small cleanup of some part of the code of the model.
The main improvement is the addition of a `MErrorType` class and two somewhat related services `MType::is_ok` and `MType::is_legal_in`.

Beside a better model and better services, this changeset clean the quickfix introduced in RTA (see #2245 )
There should be no change in the overall performance.

Pull-Request: #2248
Reviewed-by: Lucas Bajolet <r4pass@hotmail.com>