From fbad5dcdf8f17d1a3f3ff954f48b55d605d0a50c Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Mon, 9 Apr 2018 12:06:17 +0100 Subject: C++17 Updates to include C++17 changes for command options. --- libpqpp/pq-command.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'libpqpp/pq-command.h') diff --git a/libpqpp/pq-command.h b/libpqpp/pq-command.h index 2431639..c2674eb 100644 --- a/libpqpp/pq-command.h +++ b/libpqpp/pq-command.h @@ -22,10 +22,12 @@ namespace PQ { bool useCursor; bool fetchBinary; }; + typedef std::shared_ptr CommandOptionsPtr; + typedef std::shared_ptr CommandOptionsCPtr; class Command : public virtual DB::Command { public: - Command(Connection *, const std::string & sql, const DB::CommandOptions *); + Command(Connection *, const std::string & sql, const DB::CommandOptionsCPtr &); virtual ~Command() = 0; void bindParamI(unsigned int, int) override; -- cgit v1.2.3