Fix html::page declaration/definition divergence from the const sweep
The four defaulted parameters in html_util.h stayed by-value while the definition became const&, leaving the called overload undefined. Linux's -shared linking hid it (lazy dlopen resolution); it broke the book-structure HTML path at runtime. Both sides now agree (const&, defaults kept); combine_files converted consistently as well. (from dev a910e11431d2)
This commit is contained in:
@@ -88,10 +88,10 @@ namespace html {
|
||||
const std::string& version,
|
||||
const std::string& copyright,
|
||||
const std::string& css,
|
||||
strings_t css_filenames = {},
|
||||
strings_t js_filenames = {},
|
||||
strings_t local_fonts = {},
|
||||
std::string logo = {});
|
||||
const strings_t& css_filenames = {},
|
||||
const strings_t& js_filenames = {},
|
||||
const strings_t& local_fonts = {},
|
||||
const std::string& logo = {});
|
||||
|
||||
void add_title(elements_t& body, const std::string& title, const std::string& logo="");
|
||||
void add_title(elements_t& body, const std::string& title, const std::string& logo);
|
||||
|
||||
Reference in New Issue
Block a user