Re: [Development] unified data model API in QtCore => thin wrapper proposal

2018-09-09 Thread Thiago Macieira
On Sunday, 9 September 2018 04:16:24 PDT Tor Arne Vestbø wrote: > This is exactly the kind of stuff I brought up at the contributors summit. > We should strive to at least be on par with QJson, but I’m hoping we can > also have a nice API for writing (something QJson doesn’t easily > facilitate). A

Re: [Development] unified data model API in QtCore => thin wrapper proposal

2018-09-09 Thread Thiago Macieira
On Sunday, 9 September 2018 03:25:54 PDT Sze Howe Koh wrote: > Hi Thiago, > > Any chance you can give it a go? Or someone else? > > I've installed the Qt 5.12 alpha for MSVC 2015 and started playing > with the CBOR API. > > map["hello"] = foo; // ERROR C2593: Operator '[' is ambiguous That's

Re: [Development] unified data model API in QtCore => thin wrapper proposal

2018-09-09 Thread Tor Arne Vestbø
> On 9 Sep 2018, at 12:25, Sze Howe Koh wrote: > > Hi Thiago, > > On Sat, 18 Aug 2018 at 01:51, Thiago Macieira > wrote: >> >> On Friday, 17 August 2018 08:13:21 PDT Tor Arne Vestbø wrote: Now, looking at the code, I don't think it does work. I thought that QCborValue::operator[]

Re: [Development] unified data model API in QtCore => thin wrapper proposal

2018-09-09 Thread Sze Howe Koh
Hi Thiago, On Sat, 18 Aug 2018 at 01:51, Thiago Macieira wrote: > > On Friday, 17 August 2018 08:13:21 PDT Tor Arne Vestbø wrote: > > > Now, looking at the code, I don't think it does work. I thought that > > > QCborValue::operator[] returned QCborValueRefs, but it doesn't. Adding a > > > set of