• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
Keine Tags

Frequently used words (click to add to your profile)

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

Commit MetaInfo

Revision9171403d2c6cc00737471cfac6ec1a3e190251a9 (tree)
Zeit2012-11-08 12:22:07
AutorKatsuhiko Nishimra <ktns.87@gmai...>
CommiterKatsuhiko Nishimra

Log Message

Constructor of MolDSException receives boost::format

git-svn-id: https://svn.sourceforge.jp/svnroot/molds/trunk@1108 1136aad2-a195-0410-b898-f5ea1d11b9d8

Ändern Zusammenfassung

Diff

--- a/src/base/MolDSException.cpp
+++ b/src/base/MolDSException.cpp
@@ -18,11 +18,15 @@
1818 //************************************************************************//
1919 #include<string>
2020 #include<stdexcept>
21+#include<boost/format.hpp>
2122 #include"MolDSException.h"
2223 using namespace std;
2324 namespace MolDS_base{
2425 MolDSException::MolDSException(string cause) : domain_error(cause){
2526 }
27+
28+MolDSException::MolDSException(const boost::format& cause) : domain_error(cause.str()){
29+}
2630 }
2731
2832
--- a/src/base/MolDSException.h
+++ b/src/base/MolDSException.h
@@ -22,6 +22,9 @@ namespace MolDS_base{
2222 class MolDSException : public std::domain_error {
2323 public:
2424 explicit MolDSException(std::string cause);
25+#ifdef BOOST_FORMAT_HPP
26+ MolDSException(const boost::format& cause);
27+#endif
2528 private:
2629 };
2730 }