Commit 7cefb1e5 authored by Davis King's avatar Davis King

Updated the spec to reflect the fact that member function pointer

objects no longer make memory allocations and thus will never
throw bad_alloc.

--HG--
extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%402623
parent 93542b88
...@@ -70,8 +70,6 @@ namespace dlib ...@@ -70,8 +70,6 @@ namespace dlib
/*! /*!
ensures ensures
- *this == item - *this == item
throws
- std::bad_alloc
!*/ !*/
~member_function_pointer ( ~member_function_pointer (
...@@ -87,9 +85,6 @@ namespace dlib ...@@ -87,9 +85,6 @@ namespace dlib
/*! /*!
ensures ensures
- *this == item - *this == item
throws
- std::bad_alloc
If this exception is thrown then #is_set() == false
!*/ !*/
bool operator == ( bool operator == (
...@@ -144,9 +139,6 @@ namespace dlib ...@@ -144,9 +139,6 @@ namespace dlib
ensures ensures
- #is_set() == true - #is_set() == true
- calls to this->operator() will call (object.*cb)() - calls to this->operator() will call (object.*cb)()
throws
- std::bad_alloc
If this exception is thrown then #is_set() == false
!*/ !*/
template < template <
...@@ -162,9 +154,6 @@ namespace dlib ...@@ -162,9 +154,6 @@ namespace dlib
ensures ensures
- #is_set() == true - #is_set() == true
- calls to this->operator() will call (object.*cb)() - calls to this->operator() will call (object.*cb)()
throws
- std::bad_alloc
If this exception is thrown then #is_set() == false
!*/ !*/
operator some_undefined_pointer_type ( operator some_undefined_pointer_type (
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment