[MacPorts] #22927: newmat 10 please enable the use of namespace

MacPorts noreply at macports.org
Mon Jan 18 05:20:05 PST 2010


#22927: newmat 10 please enable the use of namespace
-------------------------------------+--------------------------------------
  Reporter:  slask@…                 |       Owner:  jameskyle@…           
      Type:  enhancement             |      Status:  closed                
  Priority:  Normal                  |   Milestone:                        
 Component:  ports                   |     Version:  1.8.1                 
Resolution:  fixed                   |    Keywords:                        
      Port:  newmat                  |  
-------------------------------------+--------------------------------------
Changes (by jameskyle@…):

  * status:  new => closed
  * resolution:  => fixed


Comment:

 I've added the build options. I tested on my system though and namespaces
 seem to work with or without this flag.

 I get no compile or runtime errors on this regardless of flags, could you
 provide an example please:
 {{{
 #include <newmat/newmat.h>
 #include <iostream>

 using namespace std;

 namespace foo {
   struct Foo {
     int bar;
     int bah;
     LogAndSign sign;
   };
 }

 int main (int argc, char const *argv[])
 {
   cout << "time be time" << endl;
   foo::Foo myfoo;
   Real baz(26);


   cout << myfoo.sign.Value() << endl;

   return 0;
 }
 }}}

-- 
Ticket URL: <http://trac.macports.org/ticket/22927#comment:2>
MacPorts <http://www.macports.org/>
Ports system for Mac OS


More information about the macports-tickets mailing list