Patch for : src/Lib/vpf/database path

Paul Surgeon <[email protected]> Sat, 22 Jan 2005 14:44:00 +0200
Newsgroups gmane.games.flightgear.terragear.devel
Message-ID <[email protected]>
GCC 3.4 doesn't like a copy constructor as a private member of a class.
It only accepts it as a public member.

I'm not sure if that is what is wanted but at least it compiles on my system 
now.

Paul

_______________________________________________
Terragear-devel mailing list
[email protected]
http://mail.flightgear.org/mailman/listinfo/terragear-devel
2f585eeea02e2c79d7b1d8c4963bae2d
patch_database.hxx (text/x-diff, 811 B)
Index: src/Lib/vpf/database.hxx
===================================================================
RCS file: /var/cvs/TerraGear-0.0/TerraGear/src/Lib/vpf/database.hxx,v
retrieving revision 1.1
diff -u -r1.1 database.hxx
--- src/Lib/vpf/database.hxx	18 Sep 2001 21:17:48 -0000	1.1
+++ src/Lib/vpf/database.hxx	22 Jan 2005 11:35:38 -0000
@@ -50,6 +50,11 @@
    * @param path The directory at the root of the VPF database.
    */
   VpfDataBase (const std::string &path);
+  
+  /**
+   * Copy constructor.
+   */
+  VpfDataBase (const VpfDataBase &database);
 
 
   /**
@@ -144,11 +149,6 @@
   virtual const VpfTable &getLAT () const;
 
 private:
-  /**
-   * Copy constructor.
-   */
-  VpfDataBase (const VpfDataBase &database);
-
 
   mutable VpfTableManager _table_manager;
   mutable const VpfTable * _dht;