mirror of
https://github.com/cuberite/SQLiteCpp.git
synced 2025-08-05 02:06:02 -04:00
dont include std headers inside our own namespace
This commit is contained in:
parent
808a9c894e
commit
4a92dde562
@ -12,8 +12,7 @@
|
|||||||
|
|
||||||
#include <SQLiteCpp/Statement.h>
|
#include <SQLiteCpp/Statement.h>
|
||||||
|
|
||||||
namespace SQLite
|
|
||||||
{
|
|
||||||
|
|
||||||
|
|
||||||
//this requires c++14. seems like visual studio 2015 should work (yet untested).
|
//this requires c++14. seems like visual studio 2015 should work (yet untested).
|
||||||
@ -22,6 +21,9 @@ namespace SQLite
|
|||||||
#include <utility>
|
#include <utility>
|
||||||
#include <initializer_list>
|
#include <initializer_list>
|
||||||
|
|
||||||
|
namespace SQLite
|
||||||
|
{
|
||||||
|
|
||||||
/// implementation detail for variadic bind.
|
/// implementation detail for variadic bind.
|
||||||
namespace detail {
|
namespace detail {
|
||||||
template<class F,class ...Args, std::size_t ... I>
|
template<class F,class ...Args, std::size_t ... I>
|
||||||
@ -67,8 +69,10 @@ void bind(SQLite::Statement& s,const Args& ... args) {
|
|||||||
};
|
};
|
||||||
detail::invoke_with_index(f, args...);
|
detail::invoke_with_index(f, args...);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
} // namespace SQLite
|
||||||
|
|
||||||
#else
|
#else
|
||||||
//not supported in older c++. provide a fallback?
|
//not supported in older c++. provide a fallback?
|
||||||
#endif // c++14
|
#endif // c++14
|
||||||
|
|
||||||
} // namespace SQLite
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user