Values should be able to hold empty vector
Summary
Currently, creating a value with an empty vector does not make this a vector.
Expected Behavior
It should be a vector.
Actual Behavior
Steps to Reproduce the Problem
Look at the unit test in brach f-empty-vector
:
auto empty_content = std::vector<int>();
Value value_0(empty_content);
EXPECT_TRUE(value_0.IsVector());
auto list_value_0 = value_0.GetAsVector();
EXPECT_EQ(list_value_0.size(), 0);
EXPECT_TRUE(list_value_0.empty());
Specifications
- Version: Current dev.
- Platform: Which operating system, which other relevant software versions?
Possible fixes
Branch f-empty-vector