• R/O
  • HTTP
  • SSH
  • HTTPS

提交

标签
No Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

Commit MetaInfo

修订版2e061c054b31d46b170441f86f86cb745874741a (tree)
时间2014-01-17 11:24:14
作者Katsuhiko Nishimra <ktns.87@gmai...>
CommiterKatsuhiko Nishimra

Log Message

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

更改概述

差异

--- a/src/optimization/Optimizer.h
+++ b/src/optimization/Optimizer.h
@@ -59,7 +59,7 @@ protected:
5959 void SetInitialEnergy(double initialEnergy){this->initialEnergy = initialEnergy;}
6060 void SetMatrixForce(double const* const* matrixForce){this->matrixForce = matrixForce;}
6161 template<class State>
62- State& CastRef(){
62+ State& CastRef() throw(MolDS_base::MolDSException){
6363 try{
6464 return dynamic_cast<State&>(*this);
6565 }