~ubuntu-branches/ubuntu/warty/aqsis/warty

« back to all changes in this revision

Viewing changes to boost/boost/regex/pattern_except.hpp

  • Committer: Bazaar Package Importer
  • Author(s): LaMont Jones
  • Date: 2004-08-24 07:25:04 UTC
  • Revision ID: james.westby@ubuntu.com-20040824072504-zf993vnevvisdsvb
Tags: upstream-0.9.1
ImportĀ upstreamĀ versionĀ 0.9.1

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 *
 
3
 * Copyright (c) 1998-2002
 
4
 * Dr John Maddock
 
5
 *
 
6
 * Permission to use, copy, modify, distribute and sell this software
 
7
 * and its documentation for any purpose is hereby granted without fee,
 
8
 * provided that the above copyright notice appear in all copies and
 
9
 * that both that copyright notice and this permission notice appear
 
10
 * in supporting documentation.  Dr John Maddock makes no representations
 
11
 * about the suitability of this software for any purpose.  
 
12
 * It is provided "as is" without express or implied warranty.
 
13
 *
 
14
 */
 
15
 
 
16
 /*
 
17
  *   LOCATION:    see http://www.boost.org for most recent version.
 
18
  *   FILE         pattern_except.hpp
 
19
  *   VERSION      see <boost/version.hpp>
 
20
  *   DESCRIPTION: Declares pattern-matching exception classes.
 
21
  */
 
22
 
 
23
#ifndef BOOST_RE_PAT_EXCEPT_HPP
 
24
#define BOOST_RE_PAT_EXCEPT_HPP
 
25
 
 
26
#include <boost/regex/config.hpp>
 
27
 
 
28
namespace boost{
 
29
 
 
30
#ifdef __BORLANDC__
 
31
   #pragma option push -a8 -b -Vx -Ve -pc
 
32
#endif
 
33
 
 
34
#ifdef BOOST_MSVC
 
35
#pragma warning(push)
 
36
#pragma warning(disable : 4275)
 
37
#endif
 
38
class BOOST_REGEX_DECL bad_pattern : public std::runtime_error
 
39
{
 
40
public:
 
41
   explicit bad_pattern(const std::string& s) : std::runtime_error(s){};
 
42
   ~bad_pattern() throw();
 
43
};
 
44
#ifdef BOOST_MSVC
 
45
#pragma warning(pop)
 
46
#endif
 
47
 
 
48
class BOOST_REGEX_DECL bad_expression : public bad_pattern
 
49
{
 
50
public:
 
51
   explicit bad_expression(const std::string& s) : bad_pattern(s) {}
 
52
   ~bad_expression() throw();
 
53
};
 
54
 
 
55
 
 
56
#ifdef __BORLANDC__
 
57
  #pragma option pop
 
58
#endif
 
59
 
 
60
} // namespace boost
 
61
 
 
62
#endif
 
63
 
 
64