confluentinc / confluentinc/libserdes

not compatible with latest avro library

Open
#18 6 comments 1 reaction 0 assignees View on GitHub
Dominant language
C
Stars
12
Forks
62
PR merge metrics
No merged PRs in 30d

Description

liserdes cannot be compiled because of the following error:

Serdes.cpp:224:71: error: conversion from 'avro::OutputStreamPtr {aka std::unique_ptr}' to non-scalar type 'std::auto_ptr' requested
std::auto_ptr bin_os = avro::memoryOutputStream();

Serdes.cpp:242:5: error: no match for 'operator=' (operand types are 'boost::shared_ptr >' and 'std::shared_ptr >')
v = avro::snapshot(*bin_os.get());
^
....

It seems in the latest stable avro library (v1.9.0) auto_ptr have been replaced with unique_ptr & std::move.

Commits on Dec 4, 2018
AVRO-1542 replacing auto_ptr by unique_ptr & std::move

https://github.com/apache/avro/commit/0e6df4837b1032a51e7fd85c95451781991d4856#diff-7c029b447b91573980d87596d48331be

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.