Created
July 31, 2015 07:26
-
-
Save yuba/e90c7f301ab94d58b4c6 to your computer and use it in GitHub Desktop.
TCHARを使っているC++プロジェクトでC++11正規表現を使おうとするとこういうインクルードをすることになる
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <regex> | |
namespace std { | |
#ifdef _UNICODE | |
typedef std::wstring tstring; | |
typedef std::wregex tregex; | |
typedef std::wsmatch tsmatch; | |
#else | |
typedef std::string tstring; | |
typedef std::regex tregex; | |
typedef std::smatch tsmatch; | |
#endif | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment