[ 
https://issues.apache.org/jira/browse/PROTON-1138?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15168117#comment-15168117
 ] 

ASF subversion and git services commented on PROTON-1138:
---------------------------------------------------------

Commit 71be1c6912ca77aa297492b019ee0ec0736f3546 in qpid-proton's branch 
refs/heads/master from [~aconway]
[ https://git-wip-us.apache.org/repos/asf?p=qpid-proton.git;h=71be1c6 ]

PROTON-1138: c++: Add proton::uuid, proton::timestamp and proton::decimal types.

- removed amqp_ prefixed uuid/timestamp/decimal types.
- added proton::byte_array base class for fixed-size types with no C++ 
equivalent.
- Got rid of public duration::milliseconds data member.
- Gave duration and timestamp consistent accessors, constructors and operator= 
for milliseconds values.
- Completed duration/timestamp arithmetic.

NOTE: changed duration to use int64_t instead of uint64_t. Durations can be
added and subtracted and negative durations can occur during calculations. Also
AMQP timestamp is defined as signed so we should be consistent.

UNIX time_t is traditionally unsigned because signed 32 bits is too small to
express a useful time range after the epoch. 64 bit timestamps (and durations)
do not require this restriction, signed timestamps can express time before and
after epoch.


> Assorted C++ API cleanups
> -------------------------
>
>                 Key: PROTON-1138
>                 URL: https://issues.apache.org/jira/browse/PROTON-1138
>             Project: Qpid Proton
>          Issue Type: Improvement
>          Components: cpp-binding
>    Affects Versions: 0.13.0
>            Reporter: Justin Ross
>            Assignee: Justin Ross
>             Fix For: 0.13.0
>
>




--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to