瀏覽代碼

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;