[openjk] 38/130: Implement handling of class type
Simon McVittie
smcv at debian.org
Fri Oct 28 11:09:15 UTC 2016
This is an automated email from the git hooks/post-receive script.
smcv pushed a commit to branch debian/master
in repository openjk.
commit 1022a86791abef89e8c0bc820094bc9b10f26718
Author: bibendovsky <bibendovsky at hotmail.com>
Date: Sat Jul 16 14:13:18 2016 +0300
Implement handling of class type
---
shared/qcommon/ojk_i_saved_game.h | 16 ++++++++++++----
1 file changed, 12 insertions(+), 4 deletions(-)
diff --git a/shared/qcommon/ojk_i_saved_game.h b/shared/qcommon/ojk_i_saved_game.h
index 542c89a..04b5353 100644
--- a/shared/qcommon/ojk_i_saved_game.h
+++ b/shared/qcommon/ojk_i_saved_game.h
@@ -214,8 +214,12 @@ void ISavedGame::read(
TDst& dst_value,
ClassTag)
{
- throw
- "Not implemented.";
+ static_assert(
+ std::is_same<TSrc, void>::value,
+ "Unsupported types.");
+
+ dst_value.sg_import(
+ this);
}
template<typename TSrc, typename TDst, int TCount>
@@ -428,8 +432,12 @@ void ISavedGame::write(
const TSrc& src_value,
ClassTag)
{
- throw
- "Not implemented.";
+ static_assert(
+ std::is_same<TDst, void>::value,
+ "Unsupported types.");
+
+ src_value.sg_export(
+ this);
}
template<typename TDst, typename TSrc, int TCount>
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-games/openjk.git
More information about the Pkg-games-commits
mailing list