From 6a2f8a6a8b710b8d110b6f06ce2f8643cd40081a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Rombauts?= Date: Wed, 29 Apr 2015 10:12:13 +0200 Subject: [PATCH] Cleanup and comment on the overload for GCC & Clang --- include/SQLiteCpp/Column.h | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/include/SQLiteCpp/Column.h b/include/SQLiteCpp/Column.h index 34ed4d1..b2f89ca 100644 --- a/include/SQLiteCpp/Column.h +++ b/include/SQLiteCpp/Column.h @@ -66,7 +66,7 @@ public: */ 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 * @@ -184,8 +184,9 @@ public: { 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}’) // 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>'