Using VS 2013 with VA 10.8.2023.0
Start with test.h. Note the braces initializer syntax on m_member.
class Test {
int m_member;
public:
Test(int val) : m_member{ val } {}
};
Now attempt to Move Implementation to Source file of the Test ctor.
We're left with bad code in test.h and test.cpp.
test.h after has extra { }:
class Test {
int m_member;
public:
Test(int val); {}
};
test.cpp after is missing the ctor body and the initializer has been used as the ctor body.
Test::Test(int val) : m_member
{
val
}
Should be:
Test::Test(int val) : m_member{ val }
{
}