This website works better with JavaScript.
Home
Help
Register
Sign In
pEp.foundation
/
libpEpDatatypes
Watch
5
Star
1
Fork
0
Code
Issues
0
Pull Requests
0
Projects
0
Releases
1
Wiki
Activity
Browse Source
okay, ListWrapper<bloblist_t*, void> is a full specialization, so its members don't need "template<>". Clang++ did not tell me that, g++ did. But still bizarre somehow...
master
roker
1 year ago
parent
23d25ef428
commit
2e1241bb5f
1 changed files
with
6 additions
and
8 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+6
-8
src/bloblist.cc
+ 6
- 8
src/bloblist.cc
View File
@ -11,32 +11,30 @@ namespace pEp
}
template
<
>
// template<>
int
BlobList
:
:
size
(
)
const
{
return
bloblist_length
(
value
)
;
}
// faster than .size()==0 because it's not necessary to iterate throgh the whole list
template
<
>
// template<>
bool
BlobList
:
:
empty
(
)
const
{
return
!
(
value
&
&
value
-
>
value
)
;
}
template
<
>
// template<>
void
BlobList
:
:
clear
(
)
{
free_bloblist
(
value
)
;
value
=
nullptr
;
}
template
<
>
void
BlobList
:
:
push_back
(
const
char
*
&
&
s
)
// template<>
void
BlobList
:
:
push_back
(
Blob
&
&
s
)
{
auto
last
=
stringlist_add
(
value
,
s
)
;
if
(
value
=
=
nullptr
)
value
=
last
;
// TODO
}
////////////////
Write
Preview
Loading…
Cancel
Save