]>
Commit | Line | Data |
---|---|---|
20effc67 TL |
1 | /* |
2 | Copyright 2020 Glen Joseph Fernandes | |
3 | (glenjofe@gmail.com) | |
4 | ||
5 | Distributed under Boost Software License, Version 1.0. | |
6 | (See accompanying file LICENSE_1_0.txt or copy at | |
7 | http://www.boost.org/LICENSE_1_0.txt) | |
8 | */ | |
9 | ||
10 | // MACRO: BOOST_NO_CXX11_OVERRIDE | |
11 | // TITLE: C++11 SFINAE for expressions | |
12 | // DESCRIPTION: C++11 SFINAE for expressions not supported. | |
13 | ||
14 | namespace boost_no_cxx11_override { | |
15 | ||
16 | struct base { | |
17 | virtual void first() = 0; | |
18 | virtual void second() { } | |
19 | }; | |
20 | ||
21 | struct derived | |
22 | : base { | |
23 | void first() override { } | |
24 | void second() override { } | |
25 | }; | |
26 | ||
27 | int test() | |
28 | { | |
29 | return 0; | |
30 | } | |
31 | ||
32 | } /* boost_no_cxx11_override */ |