fixed #3470. replaced objective-c patterns with c++11 patterns