diff --git a/include/nana/gui/place.hpp b/include/nana/gui/place.hpp index 8faedf91..bd50bee7 100644 --- a/include/nana/gui/place.hpp +++ b/include/nana/gui/place.hpp @@ -129,10 +129,10 @@ namespace nana template void dock(const std::string& dockname, Args&& ... args) { - dock(dockname, std::bind([](window parent, Args && ... args) + dock(dockname, std::bind([](window parent, Args & ... args) { return std::unique_ptr(new Panel(parent, std::forward(args)...)); - }, std::placeholders::_1, std::forward(args)...)); + }, std::placeholders::_1, args...)); } void dock(const std::string& dockname, std::function(window)> factory);