refs #646 Log messages when saving and loading data cache values.

This commit is contained in:
Mathew Sutcliffe
2016-05-18 17:50:29 +01:00
parent 5a43ff8d20
commit 05b5971caf
3 changed files with 15 additions and 4 deletions

View File

@@ -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));