Skip to content

SQLite::INTEGER, SQLite::FLOAT,... not declared constexprΒ #302

Open
@Grumbel

Description

@Grumbel

The declaration of those constants currently looks like this:

namespace SQLite
{

extern const int INTEGER;   ///< SQLITE_INTEGER
extern const int FLOAT;     ///< SQLITE_FLOAT
extern const int TEXT;      ///< SQLITE_TEXT
extern const int BLOB;      ///< SQLITE_BLOB
extern const int Null;      ///< SQLITE_NULL

This renders them unusable in contexts that require a constant expression, such as a switch statements. Declaring them constexpr and assigning a value inside the header should fix this.

Metadata

Metadata

Assignees

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions