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
82463617
Commit
82463617
authored
Dec 05, 2012
by
Davis King
Browse files
Added some code to workaround a bug in certain versions of gcc.
parent
dc78fef6
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
+5
-0
dlib/std_allocator.h
dlib/std_allocator.h
+5
-0
No files found.
dlib/std_allocator.h
View file @
82463617
...
...
@@ -91,6 +91,11 @@ namespace dlib
return
(
pointer
)
pool
.
allocate_array
(
num
*
sizeof
(
T
));
}
// This function is not required by the C++ standard but some versions of the STL
// distributed with gcc erroneously require it. See the bug report for further
// details: http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51626
void
construct
(
pointer
p
)
{
return
construct
(
p
,
value_type
());
}
//initialize elements of allocated storage p with value value
void
construct
(
pointer
p
,
const
T
&
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