From aa023b1a9f1a84323a81c8674d46a1d5a0d39629 Mon Sep 17 00:00:00 2001 From: schodet Date: Tue, 11 Apr 2006 19:08:35 +0000 Subject: Correction d'une erreur dans le bad_any_cast. Ajout du support de la notation exponentielle dans le parser. Ajout du support du parser dans l'interpreter. --- i/marvin/src/utils/any.hh | 2 +- i/marvin/src/utils/any.tcc | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'i/marvin/src/utils') diff --git a/i/marvin/src/utils/any.hh b/i/marvin/src/utils/any.hh index 55c8ee7..dc6204e 100644 --- a/i/marvin/src/utils/any.hh +++ b/i/marvin/src/utils/any.hh @@ -107,7 +107,7 @@ class bad_any_cast : public std::bad_cast std::string what_; public: /// Constructor. - bad_any_cast (const std::type_info &from, const std::type_info &to); + bad_any_cast (const std::type_info &to, const std::type_info &from); /// Destructor which should throw nothing. virtual ~bad_any_cast() throw() { } diff --git a/i/marvin/src/utils/any.tcc b/i/marvin/src/utils/any.tcc index 0d36d6e..70d1084 100644 --- a/i/marvin/src/utils/any.tcc +++ b/i/marvin/src/utils/any.tcc @@ -164,8 +164,8 @@ any_cast (const any &rhs) /// Constructor. inline -bad_any_cast::bad_any_cast (const std::type_info &from, - const std::type_info &to) +bad_any_cast::bad_any_cast (const std::type_info &to, + const std::type_info &from) { what_ = "illegal conversion from \'"; what_ += from.name (); -- cgit v1.2.3