confuse-devel
[Top][All Lists]
Advanced

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

Re: [Confuse-devel] C++ and deprecated conversion fr om string constant


From: Craig McQueen
Subject: Re: [Confuse-devel] C++ and deprecated conversion fr om string constant to ‘char*’
Date: Fri, 10 Jan 2014 02:31:27 +0000

Hello,

I see there has been no activity in the git repository for 3 years. What is the 
development status of libconfuse?

Can it be moved to github? It's more likely to attract contributions since 
github makes it easy to fork and do pull requests. Also it would be good to 
have a proper issue tracker which is better than a mailing list.

There are already some libconfuse forks on github:
https://github.com/scunningham/libConfuse
https://github.com/stricaud/libconfuse

Regards,
Craig McQueen

From: Oscar Koeroo <address@hidden>
Sent: Tuesday, 18 June 2013 5:32 PM
To: Craig McQueen; address@hidden
Subject: Re: [Confuse-devel] C++ and deprecated conversion from string constant 
to ‘char*’
  
Hi Craig, 

I had the same exact issue. I solved it by making a local patch, but I would 
love to see this upstream.

Oscar


Craig McQueen <address@hidden> schreef: I'm using libconfuse from a C++ 
program. It works okay, however for every config option specified with 
CFG_STR(), CFG_INT(), etc, I get a C++ compiler warning:

warning: deprecated conversion from string constant to ‘char*’

It seems that this is because struct cfg_opt field name is 'char *' rather than 
'const char *', and typical usage is to provide it a const string e.g.

CFG_STR("log-config", "log.conf", CFGF_NONE),

So, would it be possible for  struct cfg_opt field name to become 'const char 
*'?

Regards,
Craig McQueen


Confuse-devel mailing list
address@hidden
https://lists.nongnu.org/mailman/listinfo/confuse-devel
  
-- 
Verzonden van mijn Android telefoon met K-9 Mail.   


reply via email to

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