Issue 126765

Summary: update mdds to version 1.0.0
Product: Calc Reporter: j.nitschke
Component: codeAssignee: AOO issues mailing list <issues>
Status: CONFIRMED --- QA Contact:
Severity: Normal    
Priority: P3 CC: pescetti
Version: 4.2.0-dev   
Target Milestone: ---   
Hardware: All   
OS: All   
URL: https://gitlab.com/mdds/mdds
Issue Type: PATCH Latest Confirmation in: ---
Developer Difficulty: ---
Issue Depends on: 126469    
Issue Blocks:    
Attachments:
Description Flags
update mdds package none

Description j.nitschke 2016-01-01 19:56:39 UTC
Created attachment 85235 [details]
update mdds package

patch to update the Multi-Dimensional Data Structure package 0.3.1 (Oct 2010) to 1.0.0 (Oct 2015)
mdds is a source library like boost and only used in sc (Calc)
we use flat segment tree class for numeric cell properties

there were 2 build breaking changes:
* a return type changed from bool to pair<const_iterator,bool>, which lead to some simple changes in segmenttree.cxx
* uses of c++11 nullptr and unique_ptr, added a patch file for mdds to replace nullptr with NULL and comment out stuff with unique_ptr because it's not used by flat segmented tree

builds fine on Ubuntu 15.10
without the patch from issue 126469 you'll get a MD5 mismatch on bootstrap, but this shouldn't stop build process

https://gitlab.com/mdds/mdds/blob/master/CHANGELOG

I did this patch to learn more about the build process and external packages. This package has unlike others like boost or libxml2 only few changes and a very limited impact on AOO. Hope it works for you and gets committed.