• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1/*
2Copyright 2020 Glen Joseph Fernandes
3(glenjofe@gmail.com)
4
5Distributed under Boost Software License, Version 1.0.
6(See accompanying file LICENSE_1_0.txt or copy at
7http://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
14namespace boost_no_cxx11_override {
15
16struct base {
17    virtual void first() = 0;
18    virtual void second() { }
19};
20
21struct derived
22    : base {
23    void first() override { }
24    void second() override { }
25};
26
27int test()
28{
29    return 0;
30}
31
32} /* boost_no_cxx11_override */
33