Mailinglist Archive: zypp-devel (52 mails)

< Previous Next >
[zypp-devel] libzypp and C++11
  • From: "Duncan Mac-Vicar P." <dmacvicar@xxxxxxx>
  • Date: Wed, 21 Sep 2011 15:51:22 +0200
  • Message-id: <4E79EBDA.7070101@suse.de>

Now that C++11 is final, I would like to bring the discussion of using some features in future libzypp that could simplify parts of the code.

gcc 4.6 will be already included in SLE-11-SP2, so if we use C++11 features on ZYpp 10.x (Factory) and in the future SLE-11-SP3 takes ZYpp 10.x or 11.x, it should not be a problem.

Some of the features that look interesting for ZYpp:

Type inference (auto keyword): to get rid of iterator boilerplate
lambda expressions: defining callbacks inline for stuff like progress, keyring, etc
nullptr: strongly-typed null
std::initializer_list<>
Uniform Initialization
Range-based for-loop (kill our for_ :-) )
....


--
Duncan Mac-Vicar P. - http://www.suse.com/

SUSE LINUX Products GmbH, GF: Jeff Hawn, Jennifer Guild, Felix Imendörffer, HRB 16746 (AG Nürnberg)
Maxfeldstraße 5, 90409 Nürnberg, Germany

--
To unsubscribe, e-mail: zypp-devel+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: zypp-devel+help@xxxxxxxxxxxx

< Previous Next >
Follow Ups