Changeset 95975 in vbox for trunk/include/iprt/nocrt/exception
- Timestamp:
- Aug 2, 2022 12:55:08 AM (3 years ago)
- svn:sync-xref-src-repo-rev:
- 152733
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/iprt/nocrt/exception
r95922 r95975 39 39 public: 40 40 exception() RT_NOEXCEPT 41 #ifdef _MSC_VER 42 : m_pszWhat(NULL) 43 #endif 41 44 { } 42 45 43 exception(const exception &) RT_NOEXCEPT 44 { } 46 exception(const exception &a_rThat) RT_NOEXCEPT 47 #ifdef _MSC_VER 48 : m_pszWhat(a_rThat.m_pszWhat) 49 #endif 50 { 51 RT_NOREF(a_rThat); 52 } 53 54 #ifdef _MSC_VER 55 exception(const char *a_pszWhat, int a_iIgnored = 0) RT_NOEXCEPT 56 : m_pszWhat(a_pszWhat) 57 { RT_NOREF(a_iIgnored); } 58 #endif 45 59 46 60 virtual ~exception() RT_NOEXCEPT … … 49 63 virtual const char *what() const RT_NOEXCEPT 50 64 { 65 #ifdef _MSC_VER 66 if (m_pszWhat) 67 return m_pszWhat; 68 #endif 51 69 return "unknown exception"; 52 70 } 71 #ifdef _MSC_VER 72 protected: 73 const char *m_pszWhat; 74 #endif 53 75 }; 54 76
Note:
See TracChangeset
for help on using the changeset viewer.