real/imag(val) replaced by real()/imag()=val
Merge pull request #1141 from lambday/develop

real/imag(val) replaced by real()/imag()=val to make it work on non C++11 compliant compilers