Mercurial > octave
diff src/DLD-FUNCTIONS/rand.cc @ 13739:0206484682c6
rand.cc: Don't bring the whole std namespace into scope, only unordered_map
author | Jordi Gutiérrez Hermoso <jordigh@octave.org> |
---|---|
date | Thu, 20 Oct 2011 14:28:13 -0500 |
parents | 478efc95cb7a |
children | b0cdd60db5e5 |
line wrap: on
line diff
--- a/src/DLD-FUNCTIONS/rand.cc Thu Oct 20 14:12:05 2011 -0500 +++ b/src/DLD-FUNCTIONS/rand.cc Thu Oct 20 14:28:13 2011 -0500 @@ -46,12 +46,6 @@ #include "utils.h" #include "ov-re-mat.h" -#ifdef USE_UNORDERED_MAP_WITH_TR1 -using namespace std::tr1; -#else -using namespace std; -#endif - /* %!shared __random_statistical_tests__ %! % Flag whether the statistical tests should be run in "make check" or not @@ -1037,6 +1031,13 @@ @seealso{perms}\n\ @end deftypefn") { + +#ifdef USE_UNORDERED_MAP_WITH_TR1 +using std::tr1::unordered_map; +#else +using std::unordered_map; +#endif + int nargin = args.length (); octave_value retval;