mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-09 05:28:09 +08:00
Several gcc and clang fixes
This superseeds also f1199793 by a cleaner workaround.
This commit is contained in:
committed by
Roland Winklmeier
parent
70e42c0bee
commit
ab98009996
@@ -165,7 +165,7 @@ namespace BlackMisc
|
||||
/*!
|
||||
* \brief Access the first element, or a default-initialized value if the sequence is empty.
|
||||
*/
|
||||
const_reference frontOrDefault() const { static const value_type def; return empty() ? def : front(); }
|
||||
const_reference frontOrDefault() const { static const value_type def {}; return empty() ? def : front(); }
|
||||
|
||||
/*!
|
||||
* \brief Access the first element, or a default-initialized value if the sequence is empty.
|
||||
|
||||
Reference in New Issue
Block a user