Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
senf
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
wiback
senf
Commits
795258ff
Commit
795258ff
authored
18 years ago
by
g0dil
Browse files
Options
Downloads
Patches
Plain Diff
Fixes for g++-4
parent
0688b953
No related branches found
No related tags found
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
Packets/PacketRegistry.ih
+1
-0
1 addition, 0 deletions
Packets/PacketRegistry.ih
Packets/ParserBase.ih
+3
-3
3 additions, 3 deletions
Packets/ParserBase.ih
Packets/ParserBase.test.cc
+4
-0
4 additions, 0 deletions
Packets/ParserBase.test.cc
Packets/typeidvalue.hh
+1
-0
1 addition, 0 deletions
Packets/typeidvalue.hh
with
9 additions
and
3 deletions
Packets/PacketRegistry.ih
+
1
−
0
View file @
795258ff
...
@@ -35,6 +35,7 @@ namespace pkf {
...
@@ -35,6 +35,7 @@ namespace pkf {
namespace impl {
namespace impl {
struct PkReg_Entry {
struct PkReg_Entry {
virtual ~PkReg_Entry() {}
virtual void registerInterpreter(Packet const * p,
virtual void registerInterpreter(Packet const * p,
Packet::iterator b, Packet::iterator e) = 0;
Packet::iterator b, Packet::iterator e) = 0;
virtual Packet::ptr reinterpret(Packet * p) = 0;
virtual Packet::ptr reinterpret(Packet * p) = 0;
...
...
This diff is collapsed.
Click to expand it.
Packets/ParserBase.ih
+
3
−
3
View file @
795258ff
...
@@ -45,11 +45,11 @@ namespace impl {
...
@@ -45,11 +45,11 @@ namespace impl {
Parser_traits_fixed_size_check(&Parser::bytes))-sizeof(Parser_traits_sentinel<1>);
Parser_traits_fixed_size_check(&Parser::bytes))-sizeof(Parser_traits_sentinel<1>);
};
};
template <class
T
>
template <class
R
>
Parser_traits_sentinel<2> Parser_traits_fixed_size_check(
T
);
Parser_traits_sentinel<2> Parser_traits_fixed_size_check(
R (*)()
);
template <class R,class T>
template <class R,class T>
Parser_traits_sentinel<1> Parser_traits_fixed_size_check(R (T::*)());
Parser_traits_sentinel<1> Parser_traits_fixed_size_check(R (T::*)()
const
);
template <class Parser, class Iterator>
template <class Parser, class Iterator>
bool check(Iterator const & b, Iterator const & e, ParserBase *);
bool check(Iterator const & b, Iterator const & e, ParserBase *);
...
...
This diff is collapsed.
Click to expand it.
Packets/ParserBase.test.cc
+
4
−
0
View file @
795258ff
...
@@ -28,6 +28,7 @@
...
@@ -28,6 +28,7 @@
// Custom includes
// Custom includes
#include
"ParserBase.hh"
#include
"ParserBase.hh"
#include
"Packet.hh"
#include
"Packet.hh"
#include
<boost/static_assert.hpp>
#include
<boost/test/auto_unit_test.hpp>
#include
<boost/test/auto_unit_test.hpp>
#include
<boost/test/test_tools.hpp>
#include
<boost/test/test_tools.hpp>
...
@@ -85,6 +86,9 @@ namespace {
...
@@ -85,6 +86,9 @@ namespace {
BOOST_AUTO_UNIT_TEST
(
parserBase_construction
)
BOOST_AUTO_UNIT_TEST
(
parserBase_construction
)
{
{
BOOST_STATIC_ASSERT
(
pkf
::
Parser_traits
<
Parse_Test
<>
>::
fixed_size
);
BOOST_STATIC_ASSERT
(
!
pkf
::
Parser_traits
<
Parse_Test2
<>
>::
fixed_size
);
BOOST_CHECK_EQUAL
(
pkf
::
min_bytes
<
Parse_Test
<
int
>
>
(),
14u
);
BOOST_CHECK_EQUAL
(
pkf
::
min_bytes
<
Parse_Test
<
int
>
>
(),
14u
);
BOOST_CHECK
(
pkf
::
check
<
Parse_Test
<
int
>
>
(
0
,
14
)
);
BOOST_CHECK
(
pkf
::
check
<
Parse_Test
<
int
>
>
(
0
,
14
)
);
BOOST_CHECK
(
!
pkf
::
check
<
Parse_Test
<
int
>
>
(
2
,
15
)
);
BOOST_CHECK
(
!
pkf
::
check
<
Parse_Test
<
int
>
>
(
2
,
15
)
);
...
...
This diff is collapsed.
Click to expand it.
Packets/typeidvalue.hh
+
1
−
0
View file @
795258ff
...
@@ -68,6 +68,7 @@ namespace lib {
...
@@ -68,6 +68,7 @@ namespace lib {
template
<
class
Type
>
TypeIdValue
(
Type
*
);
template
<
class
Type
>
TypeIdValue
(
Type
*
);
struct
Value
{
struct
Value
{
virtual
~
Value
()
{}
virtual
std
::
type_info
const
&
id
()
=
0
;
virtual
std
::
type_info
const
&
id
()
=
0
;
virtual
Value
*
clone
()
=
0
;
virtual
Value
*
clone
()
=
0
;
};
};
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment