Commits

Anonymous committed 4156d7d

Made bstr_t.detach() public.

detach() is dangerous but that is not enough reason to make it private. Used with care it is very useful.

Comments (0)

Files changed (1)

include/comet/bstr.h

 			return *this;
 		}
 
-	private:
 		// Detach a raw BSTR from it's wrapper - detach function is dangerous.
 		BSTR detach()
 		{
 			str_ = 0;
 			return s;
 		}
+
 	public:
 
 		//!\name Create a reference to a BSTR