Author Topic: "Select virtual functions to override" uses C++11  (Read 1083 times)

at5dapa1

  • Senior Community Member
  • Posts: 213
  • Hero Points: 19
"Select virtual functions to override" uses C++11
« on: November 02, 2017, 11:46:37 am »
The C++ code I use is old, compilers old too, therefore when I create a new class which has a base class with virtual functions, Slick Edit offers to help, which is nice  :)
However the signature of the new created functions is "type name(parameters) override" instead of old "virtual type name(parameters)" style. Not a big problem to manually correct them after, but wondering if there is a setting or a way to tweak this...
SE 22.0.0.9, Win7x64
Thanks,
Daniel

patrick

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 1495
  • Hero Points: 135
Re: "Select virtual functions to override" uses C++11
« Reply #1 on: November 02, 2017, 01:08:04 pm »
There's a var called def-use-override-keyword.  If you set-var it to 0 on the slickedit command line, it will go back to generating pre c++-11 style declarations.

at5dapa1

  • Senior Community Member
  • Posts: 213
  • Hero Points: 19
Re: "Select virtual functions to override" uses C++11
« Reply #2 on: November 02, 2017, 02:22:35 pm »
Works! Thanks!