構造体を個別に宣言および初期化できますか?
Ref refType(string strRef) {
Ref ref;
if (regex_match(strRef.begin(), strRef.end(), rxIdentifier)) {
ref = { Var, strRef };
} else if (regex_match(strRef.begin(), strRef.end(), rxConstant)) {
ref = { Const, strRef };
}
return ref;
}
動作していないようです。{
Visual Studioは、構造体の初期化について不平を言います。