How to implement the factory method pattern in C++ correctly

后端 未结 11 1077
暗喜
暗喜 2020-11-22 14:55

There\'s this one thing in C++ which has been making me feel uncomfortable for quite a long time, because I honestly don\'t know how to do it, even though it sounds simple:<

11条回答
  •  感情败类
    2020-11-22 15:03

    I know this question has been answered 3 years ago, but this may be what your were looking for.

    Google has released a couple of weeks ago a library allowing easy and flexible dynamic object allocations. Here it is: http://google-opensource.blogspot.fr/2014/01/introducing-infact-library.html

提交回复
热议问题