SQLiteCpp icon indicating copy to clipboard operation
SQLiteCpp copied to clipboard

Adding std::optional to bind

Open pahlevan opened this issue 1 year ago • 0 comments

For supporting std::optional in Statement.h, this code can be added:

	template<typename T>
	void bind(const int aIndex, const std::optional<T>& value)
	{
		if (value)
			bind(aIndex, *value);
		else
			bind(aIndex);
	}

pahlevan avatar Jun 01 '24 09:06 pahlevan