Fix errors on Windows with VS 2010

release/4.3a0
Chris Beall 2014-04-17 22:49:04 -04:00
parent d3333c1c85
commit 1ed2700515
2 changed files with 5 additions and 4 deletions

View File

@ -150,10 +150,10 @@ public:
/// @{
/// stream to stream
friend std::ostream& operator <<(std::ostream& os, const EssentialMatrix& E);
GTSAM_EXPORT friend std::ostream& operator <<(std::ostream& os, const EssentialMatrix& E);
/// stream from stream
friend std::istream& operator >>(std::istream& is, EssentialMatrix& E);
GTSAM_EXPORT friend std::istream& operator >>(std::istream& is, EssentialMatrix& E);
/// @}

View File

@ -26,6 +26,7 @@
#include <boost/bind.hpp>
#include <boost/foreach.hpp>
#include <boost/random.hpp>
#include <boost/thread.hpp>
#include <boost/assign/std/vector.hpp>
#include <cmath>
@ -233,7 +234,7 @@ TEST(Unit3, localCoordinates_retract) {
for (size_t i = 0; i < numIterations; i++) {
// Sleep for the random number generator (TODO?: Better create all of them first).
sleep(0);
boost::this_thread::sleep(boost::posix_time::milliseconds(0));
// Create the two Unit3s.
// NOTE: You can not create two totally random Unit3's because you cannot always compute
@ -263,7 +264,7 @@ TEST(Unit3, localCoordinates_retract_expmap) {
for (size_t i = 0; i < numIterations; i++) {
// Sleep for the random number generator (TODO?: Better create all of them first).
sleep(0);
boost::this_thread::sleep(boost::posix_time::milliseconds(0));
// Create the two Unit3s.
// Unlike the above case, we can use any two sphers.