It is currently Sat Aug 22, 2020 4:39 am


All times are UTC




Post new topic Reply to topic  [ 12 posts ]  Go to page Previous  1, 2
Author Message
 Post subject: Re: Integration fails compiling with Visual Studio 2008
PostPosted: Sun Sep 04, 2011 1:02 pm 
Developer
User avatar

Joined: Sun May 04, 2008 6:35 pm
Posts: 1827
Ok, I've tidied up the headers which was useful but ultimatly didn't fix the problem. So now I've removed this hack:

Code:
typedef Volume<VoxelType> VolumeOfVoxelType; //Workaround for GCC/VS2010 differences.
      //class Sampler : public VolumeOfVoxelType::template Sampler< RawVolume<VoxelType> >


Which allowed it to compile on both Visual Studio and GCC and replaced it with the preprocessor:
Code:
#if defined(_MSC_VER)
      class Sampler : public Volume<VoxelType>::Sampler< RawVolume<VoxelType> > //This line works on VS2010
#else
        class Sampler : public Volume<VoxelType>::Sampler Nested< RawVolume<VoxelType> > //This line works on GCC
#endif


As far as I can tell it seems to work ok now.

Feel free to give it a go - but be warned that I did also notice the VolumeResampler example is broken in Git master (it generates some crazy geometry).


Top
Offline Profile  
Reply with quote  
 Post subject: Re: Integration fails compiling with Visual Studio 2008
PostPosted: Wed Sep 07, 2011 5:29 am 

Joined: Sun Jul 10, 2011 2:15 am
Posts: 12
David Williams wrote:
Ok, I've tidied up the headers which was useful but ultimatly didn't fix the problem. So now I've removed this hack:

Code:
typedef Volume<VoxelType> VolumeOfVoxelType; //Workaround for GCC/VS2010 differences.
      //class Sampler : public VolumeOfVoxelType::template Sampler< RawVolume<VoxelType> >


Which allowed it to compile on both Visual Studio and GCC and replaced it with the preprocessor:
Code:
#if defined(_MSC_VER)
      class Sampler : public Volume<VoxelType>::Sampler< RawVolume<VoxelType> > //This line works on VS2010
#else
        class Sampler : public Volume<VoxelType>::Sampler Nested< RawVolume<VoxelType> > //This line works on GCC
#endif


As far as I can tell it seems to work ok now.

Feel free to give it a go - but be warned that I did also notice the VolumeResampler example is broken in Git master (it generates some crazy geometry).
Much appreciated. I'll switch back to using the latest version tomorrow. It's a relief to know I won't have to fork.


Top
Offline Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 12 posts ]  Go to page Previous  1, 2

All times are UTC


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
Theme created StylerBB.net