Quantcast
Channel: CodeGuru Forums - Visual C++ Programming
Viewing all articles
Browse latest Browse all 3046

Should this be buildable with VC++17 ?

$
0
0
Admittedly I haven't given details for PBD::Signal but basically it's a cross-platform class for generating and handling signals.

Anyway... the following code compiles with most C++17 compilers, including (on Windows) Clang

But MSVC tells me illegal use of type void

Code:

#include "pbd/signals.h"

class Destructible {
public:
        virtual ~Destructible () { Destroyed(); }

        PBD::Signal<void()> Destroyed;
};


Viewing all articles
Browse latest Browse all 3046

Trending Articles