*/
bool reference_text (TextType type) const {
boost::mutex::scoped_lock lm (_mutex);
- return _reference_text[type];
+ return _reference_text[static_cast<int>(type)];
}
bool can_reference_text (std::shared_ptr<const Film> film, TextType type, std::string &) const;
std::list<dcpomatic::DCPTimePeriod> reels (std::shared_ptr<const Film> film) const;
bool can_reference (
std::shared_ptr<const Film> film,
- boost::function <bool (std::shared_ptr<const Content>)>,
+ std::function <bool (std::shared_ptr<const Content>)>,
std::string overlapping,
std::string& why_not
) const;
* rather than by rewrapping. The types here are the original text types,
* not what they are being used for.
*/
- bool _reference_text[TEXT_COUNT];
+ bool _reference_text[static_cast<int>(TextType::COUNT)];
boost::optional<dcp::Standard> _standard;
boost::optional<dcp::ContentKind> _content_kind;