diff --git a/libs/pbd/pbd/types_convert.h b/libs/pbd/pbd/types_convert.h index 9a1e3c8461..b0cf7c0884 100644 --- a/libs/pbd/pbd/types_convert.h +++ b/libs/pbd/pbd/types_convert.h @@ -43,6 +43,18 @@ inline bool string_to (const std::string& str, ID& val) return true; } +template <> +inline std::string to_string (ID val) +{ + return val.to_s(); +} + +template <> +inline ID string_to (const std::string& str) +{ + return ID(str); +} + } // namespace PBD #endif // PBD_TYPES_CONVERT_H