Explorar o código

Add missing call to initialize interpreter in 'modern' example

Benno Evers %!s(int64=4) %!d(string=hai) anos
pai
achega
f2bf7a4511
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  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;