[英]Xutility conflicts with regex in c++
我在我的C ++項目中使用正則表達式時遇到問題。 通過包含正則表達式文件,我在xutility文件中收到25個錯誤,但我不確定為什么。
包含清淡
#include <regex>
錯誤( http://imgur.com/mgP10cs )
xutility行中的這些錯誤對應於:
// TEMPLATE CLASS iterator_traits
template<class _Iter>
struct iterator_traits
{ // get traits from iterator _Iter
typedef typename _Iter::iterator_category iterator_category;
typedef typename _Iter::value_type value_type;
typedef typename _Iter::difference_type difference_type;
typedef difference_type distance_type; // retained
typedef typename _Iter::pointer pointer;
typedef typename _Iter::reference reference;
};
由於某些原因,這些錯誤僅在我調用正則表達式時發生,可以導入正則表達式文件並且可以創建正則表達式,但是如果我使用正則表達式進行構建,則會出現錯誤
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.