From: Pedro Alves Date: Thu, 19 Jul 2018 09:56:47 +0000 (+0100) Subject: gdbscm_wrap, really forward args X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=43cc6c3adb7f6ac45c06011f439ed06161d1d770;p=binutils-gdb.git gdbscm_wrap, really forward args Commit 557e56be2648 ("Eliminate most remaining cleanups under gdb/guile/") missed adding the && to Args to really forward the arguments properly. Noticed by inspection. gdb/ChangeLog: 2018-07-19 Pedro Alves * guile/guile-internal.h (gdbscm_wrap): Really make 'args' a forwarding reference. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 92c93f494f5..c28b24053ca 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2018-07-19 Pedro Alves + + * guile/guile-internal.h (gdbscm_wrap): Really make 'args' a + forwarding reference. + 2018-07-18 Pedro Alves * guile/guile.c (gdbscm_execute_gdb_command): Adjust to use diff --git a/gdb/guile/guile-internal.h b/gdb/guile/guile-internal.h index 20e002a28e2..38671bfd881 100644 --- a/gdb/guile/guile-internal.h +++ b/gdb/guile/guile-internal.h @@ -672,7 +672,7 @@ extern void gdbscm_initialize_values (void); template SCM -gdbscm_wrap (Function &&func, Args... args) +gdbscm_wrap (Function &&func, Args &&... args) { SCM result = SCM_BOOL_F;