Modify

Ticket #4991 (closed Patches: fixed)

Opened 3 years ago

Last modified 3 years ago

uuid compile errors and warnings

Reported by: olim@… Owned by: atompkins
Milestone: Boost 1.46.0 Component: uuid
Version: Boost 1.45.0 Severity: Problem
Keywords: Cc:

Description

Can someone please apply this patch to boost uuid? This patch fixes a compile error and warning when using a Green Hills compiler.

Attachments

uuid.patch Download (1.3 KB) - added by olim@… 3 years ago.
Compile error fix for GHS compiler

Change History

Changed 3 years ago by olim@…

Compile error fix for GHS compiler

comment:1 Changed 3 years ago by marshall

What is the call that is in <memory.h> ?

comment:2 Changed 3 years ago by atompkins

I agree with the fix in string_generator.hpp. In seed_rng.hpp ::memcpy is used from <memory.h>

comment:3 Changed 3 years ago by anonymous

So the green hills library doesn't have memcpy in <cstring>, which is what the standard requires?

comment:4 Changed 3 years ago by marshall

Anonymous ==> marshall in the last comment.

comment:5 Changed 3 years ago by atompkins

Ah, I see. I was reading things wrong. Right, memcpy should be in <cstring>. I am no longer sure why <memory.h> is included. Maybe I was reading things wrong much earlier in this file's life. If no tests on any platform fail after removing the #include line, I see no reason to not remove it completely.

comment:6 Changed 3 years ago by olim@…

The green hills compiler does have memcpy in <cstring>, but it does not have <memory.h>. Well, it looks like you guys figured it out already.

comment:7 Changed 3 years ago by atompkins

Removed semicolon from string_generator.hpp. Removed #include <memory.h> from seed_rng.hpp. Committed to trunk.

comment:8 Changed 3 years ago by atompkins

  • Status changed from new to closed
  • Resolution set to fixed
View

Add a comment

Modify Ticket

Change Properties
<Author field>
Action
as closed
The resolution will be deleted. Next status will be 'reopened'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.