| commit | 8eb5397bbafde1c8fb141ecd75ab34ba0172fbc1 | [log] [tgz] |
|---|---|---|
| author | Ratan Gupta <ratagupt@linux.vnet.ibm.com> | Thu May 13 14:31:29 2021 +0530 |
| committer | Ratan Gupta <ratankgupta31@gmail.com> | Fri May 14 09:31:47 2021 +0000 |
| tree | f908ecfc60cc030cab57c09182632dba4e4884fb | |
| parent | e6500a493a156dd58a92b384c77aef2cbd3addac [diff] |
fixing the ambiguous variable declaration
Object created with following semantic Widget obj(),
With most vexing parse, Compiler thinks it is
function declaration of obj which returns the
object of Widget class.
This commit fixes this ambiguity by creating an object
using braces{}
Signed-off-by: Ratan Gupta <ratankgupta31@gmail.com>
Change-Id: I8d442c3dfd07d68a93fae46ec782774a1efb72ad