]> git.sesse.net Git - casparcg/blobdiff - common/ptree.h
#430 Fixed bug where it was assumed that all Decklink devices implements the IDeckLin...
[casparcg] / common / ptree.h
index a45e838b396e6c414d5a262c4561c3398565e2fc..8eb6a2984bcb91b8a958d0ffbe2ba722dd61281b 100644 (file)
@@ -50,7 +50,7 @@ T ptree_get(const Ptree& ptree, const typename Ptree::key_type& path)
 {
        try
        {
-               return ptree.get<T>(path);
+               return ptree.template get<T>(path);
        }
        catch (boost::property_tree::ptree_bad_path&)
        {
@@ -68,7 +68,7 @@ T ptree_get_value(const Ptree& ptree)
 {
        try
        {
-               return ptree.get_value<T>();
+               return ptree.template get_value<T>();
        }
        catch (const boost::property_tree::ptree_bad_data& e)
        {