Fixed linking error on Visual Studio.

This commit is contained in:
Vincent Richard 2013-09-02 09:52:04 +02:00
parent f3727fd2ad
commit 86f0e14ea5
2 changed files with 13 additions and 0 deletions

View File

@ -275,6 +275,9 @@ const string& propertySet::property::getName() const
}
#ifndef _MSC_VER
const string& propertySet::property::getValue() const
{
return (m_value);
@ -287,6 +290,9 @@ void propertySet::property::setValue(const string& value)
}
#endif // !_MSC_VER
#ifndef VMIME_INLINE_TEMPLATE_SPECIALIZATION
template <>

View File

@ -63,6 +63,11 @@ public:
*/
const string& getName() const;
#ifndef _MSC_VER
// Visual Studio errors on linking with these 2 functions,
// whereas GCC and CLang need them.
/** Return the value of the property as a string.
*
* @return current value of the property
@ -75,6 +80,8 @@ public:
*/
void setValue(const string& value);
#endif // !_MSC_VER
/** Set the value of the property as a generic type.
*
* @param value new value for property