Skip to content

Commit

Permalink
Disable warning 4251 around exposed stl string and exception
Browse files Browse the repository at this point in the history
  • Loading branch information
apathyboy committed Jun 2, 2012
1 parent 61b9229 commit e04b76d
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
7 changes: 7 additions & 0 deletions cppconn/exception.h
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,14 @@ class CPPCONN_PUBLIC_FUNC SQLException : public std::runtime_error
#pragma warning(pop)
#endif
protected:
#ifdef WIN32
#pragma warning(push)
#pragma warning(disable : 4251)
#endif
const std::string sql_state;
#ifdef WIN32
#pragma warning(pop)
#endif
const int errNo;

public:
Expand Down
7 changes: 7 additions & 0 deletions cppconn/sqlstring.h
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,14 @@ namespace sql
{
class CPPCONN_PUBLIC_FUNC SQLString
{
#ifdef WIN32
#pragma warning(push)
#pragma warning(disable : 4251)
#endif
std::string realStr;
#ifdef WIN32
#pragma warning(pop)
#endif

public:
#ifdef _WIN32
Expand Down

0 comments on commit e04b76d

Please sign in to comment.