Skip to content

Commit

Permalink
msvc 14.1 fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
anarthal committed Oct 27, 2023
1 parent f43dfa4 commit 38f6d9d
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions include/boost/mysql/detail/run_algo.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,15 @@ struct completion_signature_impl;
template <class AlgoParams>
struct completion_signature_impl<AlgoParams, true>
{
using type = void(error_code);
// Using typedef to workaround a msvc 14.1 bug
typedef void(type)(error_code);
};

template <class AlgoParams>
struct completion_signature_impl<AlgoParams, false>
{
using type = void(error_code, typename AlgoParams::result_type);
// Using typedef to workaround a msvc 14.1 bug
typedef void(type)(error_code, typename AlgoParams::result_type);
};

template <class AlgoParams>
Expand Down

0 comments on commit 38f6d9d

Please sign in to comment.