ソースを参照

cleanup: Fix missing `std::` prefixes

rdb 3 ヶ月 前
コミット
f5713d1240
2 ファイル変更4 行追加1 行削除
  1. 1 1
      direct/src/dcparser/dcClass_ext.cxx
  2. 3 0
      dtool/src/dtoolutil/iostream_ext.h

+ 1 - 1
direct/src/dcparser/dcClass_ext.cxx

@@ -108,7 +108,7 @@ receive_update(PyObject *distobj, DatagramIterator &di) const {
   int field_id = packer.raw_unpack_uint16();
   int field_id = packer.raw_unpack_uint16();
   DCField *field = _this->get_field_by_index(field_id);
   DCField *field = _this->get_field_by_index(field_id);
   if (field == nullptr) {
   if (field == nullptr) {
-    ostringstream strm;
+    std::ostringstream strm;
     strm
     strm
         << "Received update for field " << field_id << ", not in class "
         << "Received update for field " << field_id << ", not in class "
         << _this->get_name();
         << _this->get_name();

+ 3 - 0
dtool/src/dtoolutil/iostream_ext.h

@@ -22,6 +22,9 @@
 #include <iostream>
 #include <iostream>
 #include "py_panda.h"
 #include "py_panda.h"
 
 
+using std::ostream;
+using std::istream;
+
 /**
 /**
  * These classes define the extension methods for istream and ostream, which
  * These classes define the extension methods for istream and ostream, which
  * are called instead of any C++ methods with the same prototype.
  * are called instead of any C++ methods with the same prototype.