Преглед на файлове

Add missing call to initialize interpreter in 'modern' example

Benno Evers преди 4 години
родител
ревизия
f2bf7a4511
променени са 1 файла, в които са добавени 2 реда и са изтрити 0 реда
  1. 2 0
      matplotlibcpp.h

+ 2 - 0
matplotlibcpp.h

@@ -2321,6 +2321,8 @@ struct plot_impl<std::false_type>
     template<typename IterableX, typename IterableY>
     bool operator()(const IterableX& x, const IterableY& y, const std::string& format)
     {
+        detail::_interpreter::get();
+
         // 2-phase lookup for distance, begin, end
         using std::distance;
         using std::begin;