修订版 | 2e061c054b31d46b170441f86f86cb745874741a (tree) |
---|---|
时间 | 2014-01-17 11:24:14 |
作者 | Katsuhiko Nishimra <ktns.87@gmai...> |
Commiter | Katsuhiko Nishimra |
Add throw qualifier on OptimizerState::CastRef. #32881
git-svn-id: https://svn.sourceforge.jp/svnroot/molds/branches/refactor_opt@1648 1136aad2-a195-0410-b898-f5ea1d11b9d8
@@ -59,7 +59,7 @@ protected: | ||
59 | 59 | void SetInitialEnergy(double initialEnergy){this->initialEnergy = initialEnergy;} |
60 | 60 | void SetMatrixForce(double const* const* matrixForce){this->matrixForce = matrixForce;} |
61 | 61 | template<class State> |
62 | - State& CastRef(){ | |
62 | + State& CastRef() throw(MolDS_base::MolDSException){ | |
63 | 63 | try{ |
64 | 64 | return dynamic_cast<State&>(*this); |
65 | 65 | } |