xref: /dflybsd-src/contrib/gcc-4.7/libstdc++-v3/src/c++11/regex.cc (revision 81fc95a5293ee307c688a350a3feb4734aaddbb4)
1e4b17023SJohn Marino // regex -*- C++ -*-
2e4b17023SJohn Marino 
3*5ce9237cSJohn Marino // Copyright (C) 2011-2013 Free Software Foundation, Inc.
4e4b17023SJohn Marino //
5e4b17023SJohn Marino // This file is part of the GNU ISO C++ Library.  This library is free
6e4b17023SJohn Marino // software; you can redistribute it and/or modify it under the
7e4b17023SJohn Marino // terms of the GNU General Public License as published by the
8e4b17023SJohn Marino // Free Software Foundation; either version 3, or (at your option)
9e4b17023SJohn Marino // any later version.
10e4b17023SJohn Marino 
11e4b17023SJohn Marino // This library is distributed in the hope that it will be useful,
12e4b17023SJohn Marino // but WITHOUT ANY WARRANTY; without even the implied warranty of
13e4b17023SJohn Marino // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14e4b17023SJohn Marino // GNU General Public License for more details.
15e4b17023SJohn Marino 
16e4b17023SJohn Marino // Under Section 7 of GPL version 3, you are granted additional
17e4b17023SJohn Marino // permissions described in the GCC Runtime Library Exception, version
18e4b17023SJohn Marino // 3.1, as published by the Free Software Foundation.
19e4b17023SJohn Marino 
20e4b17023SJohn Marino // You should have received a copy of the GNU General Public License and
21e4b17023SJohn Marino // a copy of the GCC Runtime Library Exception along with this program;
22e4b17023SJohn Marino // see the files COPYING3 and COPYING.RUNTIME respectively.  If not, see
23e4b17023SJohn Marino // <http://www.gnu.org/licenses/>.
24e4b17023SJohn Marino 
25e4b17023SJohn Marino #include <regex>
26e4b17023SJohn Marino 
27e4b17023SJohn Marino namespace std _GLIBCXX_VISIBILITY(default)
28e4b17023SJohn Marino {
29e4b17023SJohn Marino _GLIBCXX_BEGIN_NAMESPACE_VERSION
30e4b17023SJohn Marino 
regex_error(regex_constants::error_type __ecode)31e4b17023SJohn Marino   regex_error::regex_error(regex_constants::error_type __ecode)
32e4b17023SJohn Marino   : std::runtime_error("regex_error"), _M_code(__ecode)
33e4b17023SJohn Marino   { }
34e4b17023SJohn Marino 
~regex_error()35e4b17023SJohn Marino   regex_error::~regex_error() throw() { }
36e4b17023SJohn Marino 
37*5ce9237cSJohn Marino #ifdef _AIX
38*5ce9237cSJohn Marino   // PR libstdc++/52887
39*5ce9237cSJohn Marino   template class function<void (__regex::_PatternCursor const&,
40*5ce9237cSJohn Marino 				__regex::_Results&)>;
41*5ce9237cSJohn Marino   template class function<bool (__regex::_PatternCursor const&)>;
42*5ce9237cSJohn Marino #endif
43*5ce9237cSJohn Marino 
44e4b17023SJohn Marino _GLIBCXX_END_NAMESPACE_VERSION
45e4b17023SJohn Marino } // namespace std
46