Initialization of member array of non-copyable, non-movable, explicitly constructed types

前端 未结 3 956
滥情空心
滥情空心 2020-12-21 06:16

A library which I can\'t modify has a type akin to the following:

class A {
  public:
    A () : A(0) { }
    explicit A (int const value) : value_(value) {          


        
3条回答
  •  悲哀的现实
    2020-12-21 06:57

    The short answer - no. The longer answer - kind of, but its disgusting.

    Take a look at this discussion.

提交回复
热议问题