Created
May 25, 2017 14:03
-
-
Save njlr/272c8e2d0639b43e7f74518f2c0f3f0b to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
struct Foo::Pimpl { | |
int x; | |
int bar() { return ++x; } | |
}; | |
Foo::Foo(int x) | |
: ptr{Foo::Pimpl{x}} | |
{} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment