Hi Witold.

Based on this feature-support matrix:
http://wiki.apache.org/stdcxx/C%2B%2B0xCompilerSupport , it seems gcc 4.6
doesn't support override (even with the C++0x flag). I just verified this
without CMake.

Petr

On Thu, Jan 17, 2013 at 10:30 AM, Witold E Wolski <[email protected]>wrote:

> I would like to use the override keyword
> I added to my root CMakeLists.txt file
> SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS}  -std=c++0x") (I am using gcc 4.6)
>
> However I am still getting an error i.e:
>
> error: ‘override’ does not name a type
>
> for the following declaration
>
> void getRT(std::vector<double> & rt) const override;
>
>
>
> regards
>
> --
> Witold Eryk Wolski
>
> Triemlistrasse 155
> 8047 Zuerich
> --
>
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the CMake FAQ at:
> http://www.cmake.org/Wiki/CMake_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.cmake.org/mailman/listinfo/cmake
>
--

Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake

Reply via email to