Menu

keyword length in class Keydata

2001-02-20
2001-02-28
  • Giovanni A. Risi

    Keywords are limited to 16 characters in the class Keydata. It would be nice if this could be raised to let's say 32. And it would be very nice if such restrictions were at least mentioned in the documentation. :-)

     
    • David Sugar

      David Sugar - 2001-02-20

      Well, 16 unique characters :).  But yes, maybe that should be bigger, and mentioned somewhere...

       
      • Johann G. Oskarsson

        Or rewrite the class (or create another one) that
        uses std::string.  That would mean unlimited size...

        I'm dreaming of having the time to make a template
        that could be used as folllows:

        cc::keydata<std::string, int>
        configfile( "filename", "section-name" );

        where cc is the Common C++ namespace
        std::string is the type for the key and int is the type
        for the value.  The constructor is self explainatory,
        except it would take std::string instead of const char * as arguments.

        If I ever do, I'll let you know.

        Johann

         
        • David Sugar

          David Sugar - 2001-02-27

          ..except that I think the namespace for Common C++ in 2.0 should be "gnu:" rather than "cc:"...

           
          • Johann G. Oskarsson

            I'll keep that in mind ...

             

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.