lmi-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[lmi-commits] [lmi] master e1de3f6 3/6: Place 'sample*' classes in an un


From: Greg Chicares
Subject: [lmi-commits] [lmi] master e1de3f6 3/6: Place 'sample*' classes in an unnamed namespace
Date: Fri, 21 Jun 2019 18:18:31 -0400 (EDT)

branch: master
commit e1de3f6447a06dd463171cafa935c0cda0c561a8
Author: Gregory W. Chicares <address@hidden>
Commit: Gregory W. Chicares <address@hidden>

    Place 'sample*' classes in an unnamed namespace
    
    This change allows a parallel set of classes with the same names to be
    created as derivatives of class product_data.
---
 dbdict.cpp | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/dbdict.cpp b/dbdict.cpp
index 1b0f7fd..425975c 100644
--- a/dbdict.cpp
+++ b/dbdict.cpp
@@ -628,6 +628,8 @@ void DBDictionary::InitDB()
     Add({DB_ExpSpecAmtLimit     , dbl_inf});
 }
 
+namespace
+{
 class sample : public DBDictionary {public: sample();};
 
 class sample2finra : public sample {public: sample2finra();};
@@ -971,6 +973,7 @@ sample2xyz::sample2xyz()
     double cv_enh[3] = {0.10, 0.05, 0.00};
     Add({DB_CashValueEnhMult, e_number_of_axes, dims_1111113, cv_enh});
 }
+} // Unnamed namespace.
 
 void DBDictionary::write_database_files()
 {



reply via email to

[Prev in Thread] Current Thread [Next in Thread]