소스 검색

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;