]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/include/protected-scm.hh
Issue 4873/1: operator SCM & () for Protected_scm
[lilypond.git] / lily / include / protected-scm.hh
index 82b1fed11f95b2beb1f474b72e016fd2c6166d8d..0115cb9f9ff6e2d388dd2fc714ec5639cdcc180c 100644 (file)
@@ -46,12 +46,14 @@ class Protected_scm
   static SCM list_;
   static SCM last_;
   Protected_scm (Protected_scm const &);
+  void protectify (SCM);
 public:
   Protected_scm ();
   Protected_scm (SCM);
   Protected_scm &operator = (SCM);
   Protected_scm &operator = (Protected_scm const &);
-  operator SCM () const;
+  operator const SCM & () const;
+  operator SCM & ();
 };
 
 #endif /* PROTECTED_SCM_HH */