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

ASF GitHub Bot commented on AVRO-2230:
--------------------------------------

kojiromike closed pull request #335: AVRO-2230 Assignable line_ in Entity
URL: https://github.com/apache/avro/pull/335
 
 
   

This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:

As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):

diff --git a/lang/c++/impl/json/JsonDom.hh b/lang/c++/impl/json/JsonDom.hh
index bde3b8f2c..b6b1430e5 100644
--- a/lang/c++/impl/json/JsonDom.hh
+++ b/lang/c++/impl/json/JsonDom.hh
@@ -64,7 +64,7 @@ const char* typeToString(EntityType t);
 class AVRO_DECL Entity {
     EntityType type_;
     boost::any value_;
-    const size_t line_;
+    size_t line_;
 
     void ensureType(EntityType) const;
 public:


 

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


> ./build.sh test fails in c++
> ----------------------------
>
>                 Key: AVRO-2230
>                 URL: https://issues.apache.org/jira/browse/AVRO-2230
>             Project: Avro
>          Issue Type: Bug
>            Reporter: Michael A. Smith
>            Priority: Major
>
> In a clean docker build, the c++ build fails with the following error.
> {noformat}
> -- Boost version: 1.55.0
> -- Found the following Boost libraries:
> -- filesystem
> -- system
> -- program_options
> -- iostreams
> Enabled snappy codec
> -- Configuring done
> -- Generating done
> -- Build files have been written to: /home/michaels/avro/lang/c++/build
> -- Boost version: 1.55.0
> -- Found the following Boost libraries:
> -- filesystem
> -- system
> -- program_options
> -- iostreams
> Enabled snappy codec
> -- Configuring done
> -- Generating done
> -- Build files have been written to: /home/michaels/avro/lang/c++/build
> [ 1%] Building CXX object CMakeFiles/avrocpp_s.dir/impl/json/JsonDom.cc.o
> In file included from /home/michaels/avro/lang/c++/impl/json/JsonDom.cc:19:0:
> /home/michaels/avro/lang/c++/impl/json/JsonDom.hh: In instantiation of ‘void 
> std::__cxx1998::vector<_Tp, 
> _Alloc>::_M_insert_aux(std::__cxx1998::vector<_Tp, _Alloc>::iterator, const 
> _Tp&) [with _Tp = avro::json::Entity; _Alloc = 
> std::allocator<avro::json::Entity>; std::__cxx1998::vector<_Tp, 
> _Alloc>::iterator = __gnu_cxx::__normal_iterator<avro::json::Entity*, 
> std::__cxx1998::vector<avro::json::Entity, std::allocator<avro::json::Entity> 
> > >; typename std::__cxx1998::_Vector_base<_Tp, _Alloc>::pointer = 
> avro::json::Entity*]’:
> /usr/include/c++/4.9/bits/stl_vector.h:925:28: required from ‘void 
> std::__cxx1998::vector<_Tp, _Alloc>::push_back(const value_type&) [with _Tp = 
> avro::json::Entity; _Alloc = std::allocator<avro::json::Entity>; 
> std::__cxx1998::vector<_Tp, _Alloc>::value_type = avro::json::Entity]’
> /usr/include/c++/4.9/debug/vector:407:22: required from ‘void 
> std::__debug::vector<_Tp, _Allocator>::push_back(const _Tp&) [with _Tp = 
> avro::json::Entity; _Allocator = std::allocator<avro::json::Entity>]’
> /home/michaels/avro/lang/c++/impl/json/JsonDom.cc:72:43: required from here
> /home/michaels/avro/lang/c++/impl/json/JsonDom.hh:64:17: error: non-static 
> const member ‘const size_t avro::json::Entity::line_’, can’t use default 
> assignment operator
> class AVRO_DECL Entity {
> ^
> In file included from /usr/include/c++/4.9/vector:69:0,
> from /home/michaels/avro/lang/c++/impl/json/JsonDom.hh:26,
> from /home/michaels/avro/lang/c++/impl/json/JsonDom.cc:19:
> /usr/include/c++/4.9/bits/vector.tcc:343:16: note: synthesized method 
> ‘avro::json::Entity& avro::json::Entity::operator=(const 
> avro::json::Entity&)’ first required here
> *__position = __x_copy;
> ^
> CMakeFiles/avrocpp_s.dir/build.make:514: recipe for target 
> 'CMakeFiles/avrocpp_s.dir/impl/json/JsonDom.cc.o' failed
> make[2]: *** [CMakeFiles/avrocpp_s.dir/impl/json/JsonDom.cc.o] Error 1
> CMakeFiles/Makefile2:425: recipe for target 'CMakeFiles/avrocpp_s.dir/all' 
> failed
> make[1]: *** [CMakeFiles/avrocpp_s.dir/all] Error 2
> Makefile:147: recipe for target 'all' failed
> make: *** [all] Error 2
> {noformat}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to