aboutsummaryrefslogtreecommitdiff
path: root/gdb/guile/guile-internal.h
diff options
context:
space:
mode:
authorPedro Alves <palves@redhat.com>2018-07-19 10:56:47 +0100
committerPedro Alves <palves@redhat.com>2018-07-19 10:56:47 +0100
commit43cc6c3adb7f6ac45c06011f439ed06161d1d770 (patch)
treecd713d175e37813f4fcf7d958a7c35b0ef541436 /gdb/guile/guile-internal.h
parentf559b440bb6dc6eb853125039dfaaee84f3a7522 (diff)
downloadgdb-43cc6c3adb7f6ac45c06011f439ed06161d1d770.zip
gdb-43cc6c3adb7f6ac45c06011f439ed06161d1d770.tar.gz
gdb-43cc6c3adb7f6ac45c06011f439ed06161d1d770.tar.bz2
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 <palves@redhat.com> * guile/guile-internal.h (gdbscm_wrap): Really make 'args' a forwarding reference.
Diffstat (limited to 'gdb/guile/guile-internal.h')
-rw-r--r--gdb/guile/guile-internal.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/guile/guile-internal.h b/gdb/guile/guile-internal.h
index 20e002a..38671bf 100644
--- a/gdb/guile/guile-internal.h
+++ b/gdb/guile/guile-internal.h
@@ -672,7 +672,7 @@ extern void gdbscm_initialize_values (void);
template<typename Function, typename... Args>
SCM
-gdbscm_wrap (Function &&func, Args... args)
+gdbscm_wrap (Function &&func, Args &&... args)
{
SCM result = SCM_BOOL_F;