Don't use std::vector::data()
authorMarco Costalba <mcostalba@gmail.com>
Thu, 13 Jun 2013 05:42:43 +0000 (07:42 +0200)
committerMarco Costalba <mcostalba@gmail.com>
Thu, 13 Jun 2013 05:42:43 +0000 (07:42 +0200)
It is a C++11 only function.

Reported by Eelco.

No functional change.

src/search.cpp

index b39750d17f8b874d128d88161bb8e9a2e3c14be5..e9c0ad26a27b1ba13e063c3d8d64ec7350c6491f 100644 (file)
@@ -419,7 +419,7 @@ namespace {
                 rm = *std::find(RootMoves.begin(), RootMoves.end(), skill.best);
 
             Log log(Options["Search Log Filename"]);
-            log << pretty_pv(pos, depth, rm.score, Time::now() - SearchTime, rm.pv.data())
+            log << pretty_pv(pos, depth, rm.score, Time::now() - SearchTime, &rm.pv[0])
                 << std::endl;
         }