Volumes Of Fun

std::min / std::max errors on build
Page 1 of 1

Author:  Tharg [ Tue Jan 28, 2014 4:04 pm ]
Post subject:  std::min / std::max errors on build

Hi -

I'm almost utterly clueless, so this is very likely to be a problem I created (and then possibly solved with blind luck), but in case not :

I'm on VS2013, win 7.

I've installed Polyvox (dev build from a week or two ago, "volumesoffun-polyvox-d96dcaa53191.zip") and when building I got an error about min and max not being a part of std. I believe this was in Region.cpp.

I googled the error and the based on what I read (which wasn't specific to Polyvox) I added

#include <algorithm>

to this file.

It seems to have built fine now.

Author:  David Williams [ Tue Jan 28, 2014 8:02 pm ]
Post subject:  Re: std::min / std::max errors on build

Strange... it builds fine for me but I can't actually see why! Anyway, I think it is fine to add <algorithm> and have done so in the develop branch.

Page 1 of 1 All times are UTC
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group