1// (C) Copyright Beman Dawes 2009 2// Copyright (c) Microsoft Corporation 3// Use, modification and distribution are subject to the 4// Boost Software License, Version 1.0. (See accompanying file 5// LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) 6 7// See http://www.boost.org/libs/config for more information. 8 9// MACRO: BOOST_NO_CXX11_HDR_REGEX 10// TITLE: C++0x header <regex> unavailable 11// DESCRIPTION: The standard library does not supply C++0x header <regex> 12 13#include <regex> 14 15namespace boost_no_cxx11_hdr_regex { 16 17int test() 18{ 19 using std::regex; 20 using std::wregex; 21 22 regex e("\\d+"); 23 wregex we(L"\\d+"); 24 std::string s("123456"); 25 std::wstring ws(L"123456"); 26 return regex_match(s, e) && regex_match(ws, we) ? 0 : 1; 27} 28 29} 30