Skip to content

Commit

Permalink
Fix C2275 error with latest Visual Studio 2022
Browse files Browse the repository at this point in the history
This fixes the following build error:

  src\asio401\ASIO401\config.cpp(75): error C2672: 'ProcessTypedOption': no matching overloaded function found
  • Loading branch information
dechamps committed Apr 8, 2024
1 parent b027668 commit d87d9ba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/asio401/ASIO401/config.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ namespace asio401 {
template <typename T> struct RemoveOptional<std::optional<T>> { using Value = T; };

template <typename T, typename Validator> void SetOption(const toml::Table& table, const std::string& key, T& option, Validator validator) {
ProcessTypedOption<RemoveOptional<T>::Value>(table, key, [&](const RemoveOptional<T>::Value& value) {
ProcessTypedOption<typename RemoveOptional<T>::Value>(table, key, [&](const RemoveOptional<T>::Value& value) {
validator(value);
option = value;
});
Expand Down

0 comments on commit d87d9ba

Please sign in to comment.