diff options
| author | Carl Hetherington <cth@carlh.net> | 2019-03-21 00:10:08 +0000 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2019-04-08 00:22:40 +0100 |
| commit | ef2be1b08cb1cec5159efd8d3b833c9ea75c9b0e (patch) | |
| tree | 5f00c744d94991de65b9c17a75644cb2d3622103 /src/lib/util.h | |
| parent | b0dd2f2e0aafd24c529325dabf5da4fb346fd286 (diff) | |
Basics of metadata dialog - ratings.
Diffstat (limited to 'src/lib/util.h')
| -rw-r--r-- | src/lib/util.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/lib/util.h b/src/lib/util.h index 5ffdae450..6cb818b39 100644 --- a/src/lib/util.h +++ b/src/lib/util.h @@ -111,4 +111,15 @@ extern boost::shared_ptr<dcp::CertificateChain> read_swaroop_chain (boost::files extern void write_swaroop_chain (boost::shared_ptr<const dcp::CertificateChain> chain, boost::filesystem::path output); #endif +template <class T> +std::list<T> +vector_to_list (std::vector<T> v) +{ + std::list<T> l; + BOOST_FOREACH (T& i, v) { + l.push_back (i); + } + return l; +} + #endif |
