Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
dlib
Commits
e5dec25d
Commit
e5dec25d
authored
Jan 29, 2015
by
Davis King
Browse files
Fixed missing const on statement::bind()
parent
c4eaf67c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
7 deletions
+7
-7
dlib/sqlite/sqlite.h
dlib/sqlite/sqlite.h
+6
-6
dlib/sqlite/sqlite_abstract.h
dlib/sqlite/sqlite_abstract.h
+1
-1
No files found.
dlib/sqlite/sqlite.h
View file @
e5dec25d
...
@@ -383,7 +383,7 @@ namespace dlib
...
@@ -383,7 +383,7 @@ namespace dlib
template
<
typename
T
>
template
<
typename
T
>
typename
enable_if_c
<
std
::
numeric_limits
<
T
>::
is_integer
>::
type
bind
(
typename
enable_if_c
<
std
::
numeric_limits
<
T
>::
is_integer
>::
type
bind
(
unsigned
long
idx
,
unsigned
long
idx
,
T
&
item
const
T
&
item
)
)
{
{
if
(
sizeof
(
T
)
<=
4
)
if
(
sizeof
(
T
)
<=
4
)
...
@@ -392,15 +392,15 @@ namespace dlib
...
@@ -392,15 +392,15 @@ namespace dlib
bind_int64
(
idx
,
item
);
bind_int64
(
idx
,
item
);
}
}
void
bind
(
unsigned
long
idx
,
std
::
string
&
item
)
{
bind_text
(
idx
,
item
);
}
void
bind
(
unsigned
long
idx
,
const
std
::
string
&
item
)
{
bind_text
(
idx
,
item
);
}
void
bind
(
unsigned
long
idx
,
float
&
item
)
{
bind_double
(
idx
,
item
);
}
void
bind
(
unsigned
long
idx
,
const
float
&
item
)
{
bind_double
(
idx
,
item
);
}
void
bind
(
unsigned
long
idx
,
double
&
item
)
{
bind_double
(
idx
,
item
);
}
void
bind
(
unsigned
long
idx
,
const
double
&
item
)
{
bind_double
(
idx
,
item
);
}
void
bind
(
unsigned
long
idx
,
long
double
&
item
)
{
bind_double
(
idx
,
item
);
}
void
bind
(
unsigned
long
idx
,
const
long
double
&
item
)
{
bind_double
(
idx
,
item
);
}
template
<
typename
T
>
template
<
typename
T
>
typename
disable_if_c
<
std
::
numeric_limits
<
T
>::
is_integer
>::
type
bind
(
typename
disable_if_c
<
std
::
numeric_limits
<
T
>::
is_integer
>::
type
bind
(
unsigned
long
idx
,
unsigned
long
idx
,
T
&
item
const
T
&
item
)
)
{
{
bind_object
(
idx
,
item
);
bind_object
(
idx
,
item
);
...
...
dlib/sqlite/sqlite_abstract.h
View file @
e5dec25d
...
@@ -379,7 +379,7 @@ namespace dlib
...
@@ -379,7 +379,7 @@ namespace dlib
>
>
void
bind
(
void
bind
(
unsigned
long
parameter_id
,
unsigned
long
parameter_id
,
T
&
item
const
T
&
item
)
const
;
)
const
;
/*!
/*!
requires
requires
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment