|
@ -79,7 +79,9 @@ Declaration const& resolveDeclaration( |
|
|
// bracers are required, cause msvc couldnt handle this macro in for statement
|
|
|
// bracers are required, cause msvc couldnt handle this macro in for statement
|
|
|
for (string const& namePart: _namespacedName) |
|
|
for (string const& namePart: _namespacedName) |
|
|
{ |
|
|
{ |
|
|
BOOST_REQUIRE(declaration = _resolver.resolveName(namePart, declaration)); |
|
|
auto declarations = _resolver.resolveName(namePart, declaration); |
|
|
|
|
|
BOOST_REQUIRE(!declarations.empty()); |
|
|
|
|
|
BOOST_REQUIRE(declaration = *declarations.begin()); |
|
|
} |
|
|
} |
|
|
BOOST_REQUIRE(declaration); |
|
|
BOOST_REQUIRE(declaration); |
|
|
return *declaration; |
|
|
return *declaration; |
|
|