summaryrefslogtreecommitdiff
path: root/src/lib/util.h
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2019-03-21 00:10:08 +0000
committerCarl Hetherington <cth@carlh.net>2019-05-10 23:43:42 +0100
commit14b8b29e6660f5a7fb21135fb5f90b4c1ce51a4b (patch)
treeed06e1b877a40f57b8d4d43c1db490e6765fba6a /src/lib/util.h
parentd17044d0da61d6077a1f20170ba76ab765a44e50 (diff)
Basics of metadata dialog - ratings.
Diffstat (limited to 'src/lib/util.h')
-rw-r--r--src/lib/util.h11
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