mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Add comment to filenames in boostTest.cpp
This commit is contained in:
parent
899e6d7e2b
commit
63ad1092cd
@ -89,7 +89,10 @@ int registerTests(
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
static vector<unique_ptr<string>> filenames;
|
// This must be a vector of unique_ptrs because Boost.Test keeps the equivalent of a string_view to the filename
|
||||||
|
// that is passed in. If the strings were stored directly in the vector, pointers/references to them would be
|
||||||
|
// invalidated on reallocation.
|
||||||
|
static vector<unique_ptr<string const>> filenames;
|
||||||
|
|
||||||
filenames.emplace_back(make_unique<string>(_path.string()));
|
filenames.emplace_back(make_unique<string>(_path.string()));
|
||||||
_suite.add(make_test_case(
|
_suite.add(make_test_case(
|
||||||
|
Loading…
Reference in New Issue
Block a user