From e6660c521ea5d03e0caffa2a1f69e6e28982ab8b Mon Sep 17 00:00:00 2001 From: valmat Date: Sun, 13 Apr 2014 22:32:28 +0600 Subject: Fix linker error --- zend/ini.cpp | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'zend/ini.cpp') diff --git a/zend/ini.cpp b/zend/ini.cpp index e7d9292..8a6fe11 100644 --- a/zend/ini.cpp +++ b/zend/ini.cpp @@ -77,6 +77,17 @@ IniValue::operator double() const return zend_ini_double(const_cast(_name.c_str()), _name.size()+1, _isorig); } +/** + * Custom output stream operator + * @param stream + * @param ini_val + * @return ostream + */ +std::ostream &operator<<(std::ostream &stream, const IniValue &ini_val) +{ + return stream << static_cast(ini_val); +} + /** * End of namespace */ -- cgit v1.2.3