Skip to content

Commit 358db2a

Browse files
authored
Test build (#438)
1 parent fd4b105 commit 358db2a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

cppwinrt/code_writers.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1860,7 +1860,7 @@ struct __declspec(empty_bases) produce_dispatch_to_overridable<T, D, %>
18601860

18611861
static void write_interface_override_method(writer& w, MethodDef const& method, std::string_view const& interface_name)
18621862
{
1863-
auto format = R"( template <typename D> auto %T<D>::%(%) const
1863+
auto format = R"( template <typename D> WINRT_IMPL_AUTO(%) %T<D>::%(%) const
18641864
{
18651865
return shim().template try_as<%>().%(%);
18661866
}
@@ -1870,6 +1870,7 @@ struct __declspec(empty_bases) produce_dispatch_to_overridable<T, D, %>
18701870
auto method_name = get_name(method);
18711871

18721872
w.write(format,
1873+
signature.return_signature(),
18731874
interface_name,
18741875
method_name,
18751876
bind<write_consume_params>(signature),

0 commit comments

Comments
 (0)