szcompressor / SZ

Error-bounded Lossy Data Compressor (for floating-point/integer datasets)
http://szcompressor.org
Other
151 stars 56 forks source link

Error with "this" keyword in TightDataPointStorageI.h #19

Closed jychoi-hpc closed 6 years ago

jychoi-hpc commented 6 years ago

I got the following error when I tried to compile SZ with a c++ application: /Users/jyc/sw/sz/1.4.11.0/clang/include/TightDataPointStorageI.h:47:58: error: expected ')' void new_TightDataPointStorageI(TightDataPointStorageI this, ^ /Users/jyc/sw/sz/1.4.11.0/clang/include/TightDataPointStorageI.h:47:32: note: to match this '(' void new_TightDataPointStorageI(TightDataPointStorageI this,

It turned out "this" keyword in TightDataPointStorageI.h causing the error with c++. If I simply remove "this" in the header, it worked. Can SZ remove "this" keyword in the header files?

dingwentao commented 6 years ago

Jong, could you please update and try the code again?

jychoi-hpc commented 6 years ago

Yes, it works now. Thank you for the quick fix.