mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-02 15:15:50 +08:00
Fixed errors found while trying to compile with Clang on Windows.
This commit is contained in:
@@ -186,7 +186,7 @@ namespace BlackMisc
|
||||
/*!
|
||||
* \brief Access the last element, or a default value if the sequence is empty.
|
||||
*/
|
||||
const_reference backOrDefault() const { static const value_type def; return empty() ? def : back(); }
|
||||
const_reference backOrDefault() const { static const value_type def {}; return empty() ? def : back(); }
|
||||
|
||||
/*!
|
||||
* \brief Access the last element, or a default value if the sequence is empty.
|
||||
|
||||
Reference in New Issue
Block a user