Question

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,

  • How do I get taglist syntastic to recognise c++11 functions?
  • Is there a way I can at least hide the error messages within vim?

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

Was it helpful?

Solution

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

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top