summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorljfa-ag <ljfa-ag@web.de>2015-07-22 21:52:14 +0200
committerljfa-ag <ljfa-ag@web.de>2015-07-22 21:52:14 +0200
commite969e62e5c724efc995ea55d0c9238631ab4377b (patch)
treee6a9d051ff3f7f4bb7d38f3273934342a8802d1c
parenta8991a4b5e8854ae4ffa48b40ccf66358f462704 (diff)
downloadProject-Tick-e969e62e5c724efc995ea55d0c9238631ab4377b.tar.gz
Project-Tick-e969e62e5c724efc995ea55d0c9238631ab4377b.zip
Fix missing cast
-rw-r--r--include/crtp_tag.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/crtp_tag.h b/include/crtp_tag.h
index f227fec9cf..94730887d5 100644
--- a/include/crtp_tag.h
+++ b/include/crtp_tag.h
@@ -71,7 +71,7 @@ namespace detail
template<class Sub>
tag& crtp_tag<Sub>::assign(tag&& rhs)
{
- return *this = dynamic_cast<Sub&&>(rhs);
+ return static_cast<Sub&>(*this) = dynamic_cast<Sub&&>(rhs);
}
template<class Sub>