[LyX/master] DocBook: implement prepended/appended arguments for all kinds of elements.

Pavel Sanda sanda at lyx.org
Sun Feb 21 13:20:14 UTC 2021

On Fri Feb 19 17:38:22 2021 +0100, Thibaut Cuvelier wrote:

commit 358e4ace560f4a6a3a8435ac9959e38a23cb6d56
Author: Thibaut Cuvelier <tcuvelier at lyx.org>
Date:   Fri Feb 19 17:38:22 2021 +0100
    DocBook: implement prepended/appended arguments for all kinds of elements.
    Previously, it was just in InsetText.

-   return generatedParagraphs;
+ return std::tuple(prependedParagraphs, generatedParagraphs, appendedParagraphs);

Hi Thibaut, 

older gcc won't compile with the following output, could you have a look?

  CXX      Paragraph.o       
Paragraph.cpp: In member function 'std::tuple<std::__debug::vector<std::basic_st
ring<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >, std::allocat
or<std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t>
> > >, std::__debug::vector<std::basic_string<wchar_t, std::char_traits<wchar_t
>, std::allocator<wchar_t> >, std::allocator<std::basic_string<wchar_t, std::cha
r_traits<wchar_t>, std::allocator<wchar_t> > > >, std::__debug::vector<std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >, std::allocator<std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> > > > > lyx::Paragraph::simpleDocBookOnePar(const lyx::Buffer&, const lyx::OutputParams&, const lyx::Font&, lyx::pos_type, bool, bool) const':

Paragraph.cpp:3594:19: error: missing template arguments before '(' token
return std::tuple(prependedParagraphs, generatedParagraphs, appendedParagraphs);

More information about the lyx-devel mailing list