mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-21 04:45:31 +08:00
refs #646 Log messages when saving and loading data cache values.
This commit is contained in:
@@ -192,6 +192,13 @@ namespace BlackMisc
|
||||
//! Implicit conversion to any container of value_type which supports push_back. This will copy elements.
|
||||
template <class T, class = std::enable_if_t<std::is_convertible<value_type, typename T::value_type>::value>>
|
||||
operator T() const
|
||||
{
|
||||
return to<T>();
|
||||
}
|
||||
|
||||
//! Explicit conversion to any container of value_type which supports push_back. This will copy elements.
|
||||
template <class T>
|
||||
T to() const
|
||||
{
|
||||
T container;
|
||||
std::copy(begin(), end(), std::back_inserter(container));
|
||||
|
||||
Reference in New Issue
Block a user