lilypond-auto
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Lilypond-auto] [LilyIssues-auto] [testlilyissues:issues] Re: #5776 Remo


From: Auto mailings of changes to Lily Issues via Testlilyissues-auto
Subject: [Lilypond-auto] [LilyIssues-auto] [testlilyissues:issues] Re: #5776 Remove redundant checks with C++11
Date: Thu, 20 Feb 2020 12:43:40 -0000

One could argue that it still makes sense to kind of separate the declaration from the template implementation. I don't have a strong opinion here.

[FWIW and totally unrelated to this issue (well, that's what I muse about): I tried to reduce the amount of templates in smobs.tcc at least twice. That would be nice because I think it would be one of the easiest gains to reduce compile time - right now, every TU instantiates some tens of Smob_base<T> and the duplicated code is only dropped at the link stage, the duplicated debug information probably never. Unfortunately I failed so far because the code extensively uses static functions, something that cannot easily be replaced by polymorphism as I would do in an object-oriented language.]


[issues:#5776] Remove redundant checks with C++11

Status: Started
Created: Thu Feb 20, 2020 11:40 AM UTC by Jonas Hahnfeld
Last Updated: Thu Feb 20, 2020 12:29 PM UTC
Owner: Jonas Hahnfeld

Remove redundant checks with C++11

Individual changes:
1) Drop check for std::vector::data()

The corresponding code was already removed in 2015, commit d36ec1303b
("Issue 4577: Remove the nasty workaround for platforms that don't
provide std::vector::data().").

2) flower: Rely on [v]snprintf from libc

These are required in C++11 according to
https://en.cppreference.com/w/cpp/io/c/fprintf
https://en.cppreference.com/w/cpp/io/c/vfprintf

While editing config.hh.in, also get rid of unused HAVE_LRINT.

3) Drop check for explicit template instantiation

The define was unused and as far as I can tell, the code is valid
C++ and should just always work.

http://codereview.appspot.com/583550043


Sent from sourceforge.net because address@hidden is subscribed to https://sourceforge.net/p/testlilyissues/issues/

To unsubscribe from further messages, a project admin can change settings at https://sourceforge.net/p/testlilyissues/admin/issues/options. Or, if this is a mailing list, you can unsubscribe from the mailing list.

_______________________________________________
Testlilyissues-auto mailing list
address@hidden
https://lists.sourceforge.net/lists/listinfo/testlilyissues-auto

reply via email to

[Prev in Thread] Current Thread [Next in Thread]