Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
K
kicad-source-mirror
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
Elphel
kicad-source-mirror
Commits
eaf4f047
Commit
eaf4f047
authored
Oct 20, 2009
by
jerryjacobs
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Hacked boost check macro to compile correct on Mac OSX Leopard
parent
9880975e
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
6 deletions
+6
-6
is_incrementable.hpp
include/boost/detail/is_incrementable.hpp
+5
-5
static_move_ptr.hpp
include/boost/ptr_container/detail/static_move_ptr.hpp
+1
-1
No files found.
include/boost/detail/is_incrementable.hpp
View file @
eaf4f047
...
...
@@ -69,11 +69,11 @@ namespace is_incrementable_
# pragma warning(disable:4913) // Warning about operator,
# endif
// two check overloads help us identify which operator++ was picked
char
(
&
check
(
tag
)
)[
2
];
// two check
_
overloads help us identify which operator++ was picked
char
(
&
check
_
(
tag
)
)[
2
];
template
<
class
T
>
char
check
(
T
const
&
);
char
check
_
(
T
const
&
);
template
<
class
T
>
...
...
@@ -83,7 +83,7 @@ namespace is_incrementable_
BOOST_STATIC_CONSTANT
(
bool
,
value
=
sizeof
(
is_incrementable_
::
check
(
BOOST_comma
(
++
x
,
0
)))
==
1
,
value
=
sizeof
(
is_incrementable_
::
check
_
(
BOOST_comma
(
++
x
,
0
)))
==
1
);
};
...
...
@@ -94,7 +94,7 @@ namespace is_incrementable_
BOOST_STATIC_CONSTANT
(
bool
,
value
=
sizeof
(
is_incrementable_
::
check
(
BOOST_comma
(
x
++
,
0
)))
==
1
,
value
=
sizeof
(
is_incrementable_
::
check
_
(
BOOST_comma
(
x
++
,
0
)))
==
1
);
};
...
...
include/boost/ptr_container/detail/static_move_ptr.hpp
View file @
eaf4f047
...
...
@@ -151,7 +151,7 @@ public:
deleter_const_reference
get_deleter
()
const
{
return
impl_
.
second
();
}
private
:
template
<
typename
TT
,
typename
DD
>
void
check
(
const
static_move_ptr
<
TT
,
DD
>&
ptr
)
void
check
_
(
const
static_move_ptr
<
TT
,
DD
>&
ptr
)
{
typedef
move_ptrs
::
is_smart_ptr_convertible
<
TT
,
T
>
convertible
;
BOOST_STATIC_ASSERT
(
convertible
::
value
);
...
...
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