summaryrefslogtreecommitdiff
path: root/i/marvin/src/utils
diff options
context:
space:
mode:
Diffstat (limited to 'i/marvin/src/utils')
-rw-r--r--i/marvin/src/utils/any.hh2
-rw-r--r--i/marvin/src/utils/any.tcc4
2 files changed, 3 insertions, 3 deletions
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 ();