namespace MBB
{
template < typename BLOCK_TYPE >
struct MBB_Memory_bin
{
MBB_Memory_bin( void );
MBB_Memory_bin( Identifier New_ID, Sizeof_block Element_count );
~MBB_Memory_bin( void );
struct Memory_bin_element
{
Identifier Element_ID;
Bit_flags Element_flags;
BLOCK_TYPE *Element_block;
};
protected:
struct Bin_info
{
short Last_bin_element; // Last valid index within the bin.
Identifier Bin_ID; // The Bin's identifier.
} Bin_info;
public:
// Name: Memory_bin
// Holds the specified amount of bin elements. The given amount of
// elements is used as the maximum amount of elements.
Memory_bin_element *Memory_bin;
// Name: Attach_element( )
// Adds a new element to the bin. If successful, the newly allocated
// element is returned to allow element initialization.
Memory_bin_element *Attach_element( BLOCK_TYPE Init_obj, Bit_flags New_flags, Identifier New_ID );
// Name: Detach_element( )
// Removes the element with the specified identifier within the bin.
// If no matching identifier is found, no action is taken and false
// is returned. Else, true is returned on a successful detachment.
bool Detach_element( Identifier Target_ID );
// Name: Release_bin( )
// Deallocates any memory allocated by the bin.
bool Release_bin( void );
// Name: Bring_back_element( )
// Takes the given identifier and compares the given identifier with
// the identifiers of the elements. If an identifier matches the given
// identifier, the element is returned.
Memory_bin_element *Bring_back_element( Identifier Target_ID ) const;
};
}
Here's the problem: The last method definition is giving me this error( only error with no warnings ): expected constructor, destructor, or type conversion before '*' token