Skip to content

Instantly share code, notes, and snippets.

@yuba
Created July 31, 2015 07:26
Show Gist options
  • Save yuba/e90c7f301ab94d58b4c6 to your computer and use it in GitHub Desktop.
Save yuba/e90c7f301ab94d58b4c6 to your computer and use it in GitHub Desktop.
TCHARを使っているC++プロジェクトでC++11正規表現を使おうとするとこういうインクルードをすることになる
#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