Last active
May 25, 2016 02:00
-
-
Save geniys/3259fbd6b08063c6b0b3ea3f11688ea3 to your computer and use it in GitHub Desktop.
Revisions
-
geniys revised this gist
May 25, 2016 . 1 changed file with 3 additions and 0 deletions.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -1,3 +1,6 @@ # Link [C++ FAQ](https://isocpp.org/wiki/faq) # Catch exception from constructor initializer list ``` cpp // foo.h -
geniys revised this gist
May 25, 2016 . 1 changed file with 2 additions and 2 deletions.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -1,14 +1,14 @@ # Catch exception from constructor initializer list ``` cpp // foo.h class Foo { public: Foo(); private; Bar mBar; } // foo.cpp class Foo::Foo() try : mBar() { // constructor } catch ( ... ) { -
geniys renamed this gist
May 25, 2016 . 1 changed file with 6 additions and 3 deletions.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -1,5 +1,5 @@ # Catch exception from constructor initializer list ``` cpp foo.h class Foo { public: @@ -10,5 +10,8 @@ private; foo.cpp class Foo::Foo() try : mBar() { // constructor } catch ( ... ) { // handle exception } ``` -
geniys created this gist
May 25, 2016 .There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,14 @@ Catch exception from constructor initializer list foo.h class Foo { public: Foo(); private; Bar mBar; } foo.cpp class Foo::Foo() try : mBar() { } catch ( ... ) { }