Cleanup and comment on the overload for GCC & Clang

This commit is contained in:
Sébastien Rombauts 2015-04-29 10:12:13 +02:00
parent 82364ea419
commit 6a2f8a6a8b

View File

@ -66,7 +66,7 @@ public:
*/ */
const char* getName() const noexcept; // nothrow const char* getName() const noexcept; // nothrow
#ifdef SQLITE_ENABLE_COLUMN_METADATA #ifdef SQLITE_ENABLE_COLUMN_METADATA
/** /**
* @brief Return a pointer to the table column name that is the origin of this result column * @brief Return a pointer to the table column name that is the origin of this result column
* *
@ -184,8 +184,9 @@ public:
{ {
return getBlob(); return getBlob();
} }
#ifdef __GNUC__
// NOTE : the following is required by GCC to cast a Column result in a std::string #ifdef __GNUC__
// NOTE : the following is required by GCC and Clang to cast a Column result in a std::string
// (error: conversion from SQLite::Column to non-scalar type std::string {aka std::basic_string<char>}) // (error: conversion from SQLite::Column to non-scalar type std::string {aka std::basic_string<char>})
// but is not working under Microsoft Visual Studio 2010 and 2012 // but is not working under Microsoft Visual Studio 2010 and 2012
// (error C2440: 'initializing' : cannot convert from 'SQLite::Column' to 'std::basic_string<_Elem,_Traits,_Ax>' // (error C2440: 'initializing' : cannot convert from 'SQLite::Column' to 'std::basic_string<_Elem,_Traits,_Ax>'