mirror of
https://github.com/pocoproject/poco.git
synced 2025-05-29 23:42:39 +02:00
changed AbstractExtraction::isValueNull(const std::string&, bool) from specialization to overload
This commit is contained in:
parent
fc5a503593
commit
e55781ba66
@ -145,15 +145,15 @@ public:
|
|||||||
bool isValueNull(const T& str, bool deflt)
|
bool isValueNull(const T& str, bool deflt)
|
||||||
/// Utility function to determine the nullness of the value.
|
/// Utility function to determine the nullness of the value.
|
||||||
/// This generic version always returns default value
|
/// This generic version always returns default value
|
||||||
/// (i.e. does nothing).
|
/// (i.e. does nothing). The std::string overload does
|
||||||
|
/// the actual work.
|
||||||
///
|
///
|
||||||
{
|
{
|
||||||
return deflt;
|
return deflt;
|
||||||
}
|
}
|
||||||
|
|
||||||
template <>
|
|
||||||
bool isValueNull(const std::string& str, bool deflt);
|
bool isValueNull(const std::string& str, bool deflt);
|
||||||
/// Specialization for const reference to std::string.
|
/// Overload for const reference to std::string.
|
||||||
///
|
///
|
||||||
/// Returns true when folowing conditions are met:
|
/// Returns true when folowing conditions are met:
|
||||||
///
|
///
|
||||||
|
@ -59,7 +59,6 @@ AbstractExtraction::~AbstractExtraction()
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
template <>
|
|
||||||
bool AbstractExtraction::isValueNull(const std::string& str, bool deflt)
|
bool AbstractExtraction::isValueNull(const std::string& str, bool deflt)
|
||||||
{
|
{
|
||||||
if (getForceEmptyString()) return false;
|
if (getForceEmptyString()) return false;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user