[wsf-c-dev] [C++] Proposing the use of namespaces

Damitha Kumarage damitha at wso2.com
Tue Oct 16 03:46:33 PDT 2007


Senaka Fernando wrote:

>I guess it is better to define the C++ classes that we expose through
>WSF/C++ within namespaces similar to packages in java. This will ease
>the conflicts that if not would arise between C and C++ headers having
>possibly similar names.
>
>As, C++ developers are accustomed to different style of coding it would
>be better if we could opt the namespace approach.
>  
>
It is OK to use namespaces, but not exactly as java use of namespaces. 
It would be an overkill if we do it in C++. We should use namespaces in 
C++ to do some grouping in order to avoid conflicts. Defining C+ wrapper 
functions in a namespace would be enought I think.
Damitha

>Any suggestions?
>
>Regards,
>
>Senaka
>
>
>_______________________________________________
>Wsf-c-dev mailing list
>Wsf-c-dev at wso2.org
>http://wso2.org/cgi-bin/mailman/listinfo/wsf-c-dev
>
>  
>




More information about the Wsf-c-dev mailing list