Run Code  | API  | Code Wall  | Misc  | Feedback  | Login  | Theme  | Privacy  | Patreon 

constructor-is-not-called-in-this-aggregation-class

Language: Layout:
+ ] Compiler args + ] Show input
Compilation time: 0.65 sec, absolute running time: 0.03 sec, cpu time: 0 sec, memory peak: 3 Mb, absolute service time: 0.85 sec 
edit mode |  history  | discussion
Warning(s):
source_file.cpp:16:8: warning: parentheses were disambiguated as a function declaration [-Wvexing-parse]
    B b(A());  /* no ouput */
       ^~~~~
source_file.cpp:16:9: note: add a pair of parentheses to declare a variable
    B b(A());  /* no ouput */
        ^
        (  )
1 warning generated.