Sunday 15 July 2012

c++ - What is the correct way to initialize a Matrix in C++98? -


  1. I'm not a programmer
  2. I want to compile the inkscape in Win32, and stumble These error messages:

ui / dialog / file_dialogimpl-win32.cpp: 1379: Error: 'Matrix' should be started by constructor in C ++ 98, not To create '{...}' [1]: *** [ui / dialog / fileialogimpl-win32.o] Error 1

Suspicious code filedialogimpl-win32 Cpp :

 ... // Draw the image if (_preview_bitmap_image) // Is the image a pixbuf? {// set the conversion matrix matrix = {scale factor, 0, 0, scale factor, SVGX, SVGY}; Context-> set_matrix (matrix); ... 

How is it written in the C ++ 98 standard?

I have googling it but no one has faced it like this, can it be unrelated?

const matrix metrics = {scaleFactor, 0, 0, scaleFactor,

Something like this should be:

const matrix metrics (scale factor, 0, 0, scale factor, svgx, svgv);


No comments:

Post a Comment