mirror of
https://git.lyx.org/repos/lyx.git
synced 2025-01-22 07:42:02 +00:00
Disambiguate std::bind, boost::bind, std::ref, boost::ref (2)
This fixes compilation with MSVC2012. See also [2b0a7a5e/lyxgit].
This commit is contained in:
parent
926bb4b41a
commit
9547725c38
@ -3100,21 +3100,21 @@ Buffer::ExportStatus GuiView::GuiViewPrivate::runAndDestroy(const T& func, Buffe
|
||||
Buffer::ExportStatus GuiView::GuiViewPrivate::compileAndDestroy(Buffer const * orig, Buffer * clone, string const & format)
|
||||
{
|
||||
Buffer::ExportStatus (Buffer::* mem_func)(std::string const &, bool) const = &Buffer::doExport;
|
||||
return runAndDestroy(bind(mem_func, clone, _1, true), orig, clone, format);
|
||||
return runAndDestroy(lyx::bind(mem_func, clone, _1, true), orig, clone, format);
|
||||
}
|
||||
|
||||
|
||||
Buffer::ExportStatus GuiView::GuiViewPrivate::exportAndDestroy(Buffer const * orig, Buffer * clone, string const & format)
|
||||
{
|
||||
Buffer::ExportStatus (Buffer::* mem_func)(std::string const &, bool) const = &Buffer::doExport;
|
||||
return runAndDestroy(bind(mem_func, clone, _1, false), orig, clone, format);
|
||||
return runAndDestroy(lyx::bind(mem_func, clone, _1, false), orig, clone, format);
|
||||
}
|
||||
|
||||
|
||||
Buffer::ExportStatus GuiView::GuiViewPrivate::previewAndDestroy(Buffer const * orig, Buffer * clone, string const & format)
|
||||
{
|
||||
Buffer::ExportStatus (Buffer::* mem_func)(std::string const &) const = &Buffer::preview;
|
||||
return runAndDestroy(bind(mem_func, clone, _1), orig, clone, format);
|
||||
return runAndDestroy(lyx::bind(mem_func, clone, _1), orig, clone, format);
|
||||
}
|
||||
|
||||
#else
|
||||
|
Loading…
x
Reference in New Issue
Block a user