- **status**: accepted --> fixed


---

** [tickets:#94] Convert AMF to C++**

**Status:** fixed
**Created:** Mon May 13, 2013 05:00 AM UTC by Nagendra Kumar
**Last Updated:** Tue Jan 07, 2014 02:20 PM UTC
**Owner:** hano

Migrated from http://devel.opensaf.org/ticket/2631

As part of the refactoring effort in AMF, the suggestion is that AMF is 
converted from C to C++. This will make it possible to take advantage of the 
the higher-level language constructs in the C++ standard library, for example 
std::list, std::string, std::set and std::map. By using higher level language 
features like these, the code can be simplified and made easier to maintain.


Since C is basically a subset of C++, conversion from C to C++ should be fairly 
straightforward. In the best case, it can be a simple matter of renaming the C 
source files from *.c to *.cc and the header files from *.h to *.hh


In reality, there are a few minor differences between C and C++. For example, 
functions taking no parameters are declared differently in C and C++. Also C++ 
has stricter type-checking than C which means that in some cases C++ may 
require an explicit cast where C is happy with an implicit cast.
----------------------------------------------
Changed 9 months ago by anwi ¶
  GCC is currently being converted from C to C++, and it looks like this 
conversion is going to be merged into the upcoming GCC 4.8 to be released in 
2013. Some inspiration and ideas for refactoring OpenSAF can be found when 
looking at their wiki page for the C++ conversion, even though not everything 
is applicable to us. Their page can be found here:  
http://gcc.gnu.org/wiki/cxx-conversion


Changed 3 weeks ago by hafe ¶
  changeset: 4207:096b6746fd2e
tag: tip
user: Hans Nordeback <hans.nordeback@…>
date: Mon Apr 22 14:53:08 2013 +0200
summary: avsv: convert AMF director C++ (part 1, #2631)






---

Sent from sourceforge.net because [email protected] is 
subscribed to https://sourceforge.net/p/opensaf/tickets/

To unsubscribe from further messages, a project admin can change settings at 
https://sourceforge.net/p/opensaf/admin/tickets/options.  Or, if this is a 
mailing list, you can unsubscribe from the mailing list.
------------------------------------------------------------------------------
CenturyLink Cloud: The Leader in Enterprise Cloud Services.
Learn Why More Businesses Are Choosing CenturyLink Cloud For
Critical Workloads, Development Environments & Everything In Between.
Get a Quote or Start a Free Trial Today. 
http://pubads.g.doubleclick.net/gampad/clk?id=119420431&iu=/4140/ostg.clktrk
_______________________________________________
Opensaf-tickets mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensaf-tickets

Reply via email to