diff --git a/faq.htm b/faq.htm index 8fbea949..fb3795b6 100644 --- a/faq.htm +++ b/faq.htm @@ -190,10 +190,12 @@ others support them but with reduced efficiency. Throw specifications may be added at a later date as compilers begin to handle this better. The library should throw only three types of exception: boost::bad_expression can be thrown by reg_expression -when compiling a regular expression; boost::bad_pattern can be -thrown by the class sub_match's conversion operators; finally std::bad_alloc -can be thrown by just about any of the functions in this library. -

+when compiling a regular expression, std::runtime_error can be +thrown when a call to reg_expression::imbue tries to open a +message catalogue that doesn't exist or when a call to RegEx::GrepFiles +or RegEx::FindFiles tries to open a file that cannot be opened, +finally std::bad_alloc can be thrown by just about any of the +functions in this library.


diff --git a/template_class_ref.htm b/template_class_ref.htm index 10c28d52..ccd0d3c9 100644 --- a/template_class_ref.htm +++ b/template_class_ref.htm @@ -400,7 +400,7 @@ very closely on class basic_string, and fulfils the requirements for a container of charT.

namespace boost{
-template <class charT, class traits = char_regex_traits<charT>, class Allocator = std::allocator<charT>  >
+template <class charT, class traits = regex_traits<charT>, class Allocator = std::allocator<charT>  >
 class reg_expression : public regbase
 {
 public: 
@@ -679,7 +679,9 @@ for a container of charT. 

locale_type& l); Imbues the expression with the specified locale, and invalidates the current - expression. + expression. May throw std::runtime_error if the call + results in an attempt to open a non-existent message + catalogue.