refactor: remove needless addressof() call

This commit is contained in:
ToruNiina
2020-07-27 23:00:40 +09:00
parent 32a5341d09
commit 68e8a31659
2 changed files with 10 additions and 11 deletions

View File

@@ -76,8 +76,7 @@ inline ::toml::value operator"" _toml(const char* str, std::size_t len)
}
else // none of them.
{
throw ::toml::syntax_error(data.unwrap_err(),
source_location(std::addressof(loc)));
throw ::toml::syntax_error(data.unwrap_err(), source_location(loc));
}
}