Reputation: 183
While using a few c++11 functions in vim I noticed that the vim plugin taglist syntastic keeps reporting errors such as 'stoi' was not declared in this scope
.
So I have a few questions,
Also I know I can replace c++11 specific code with standard c++ to fix the errors, but I want to find out if there is another way.
Edit: Sorry, turns out syntastic is actually responsible for the errors not taglist
Thanks for reminding me, I have too many plugins and I forget what each do
Upvotes: 4
Views: 719
Reputation: 183
After some searching on syntastic's git repo I found an easy solution,
by adding let g:syntastic_cpp_compiler_options = '-std=c++11'
in to my .vimrc
Upvotes: 6