Kaynağa Gözat

[cpp] make sure StringMap's h field is kept if we use StringMap

(cherry picked from commit 7ff9b212782c1224c5c6a93d0a8a784badb836c0)
Simon Krajewski 10 yıl önce
ebeveyn
işleme
5c1a8b0e1a
1 değiştirilmiş dosya ile 1 ekleme ve 0 silme
  1. 1 0
      std/cpp/_std/haxe/ds/StringMap.hx

+ 1 - 0
std/cpp/_std/haxe/ds/StringMap.hx

@@ -46,6 +46,7 @@ package haxe.ds;
   inline Void set(Dynamic &key, const VALUE &value) { set( (String)key, value ); return null(); }
 ")
 @:coreApi class StringMap<T> implements haxe.Constraints.IMap<String,T> {
+	@:ifFeature("haxe.ds.StringMap.*")
 	private var h : Dynamic;
 
 	public function new() : Void { }