Thursday, May 18, 2017

Digest for comp.lang.c++@googlegroups.com - 3 updates in 2 topics

jak <please@nospam.tnx>: May 19 12:58AM +0200

Il 26/04/2017 13:56, kus ha scritto:
> something wrong here?
> Thanks,
> Kushal
Hi,
try applying this algorithm before accessing the resource:
 
https://en.wikipedia.org/wiki/Dining_philosophers_problem
 
your problem seems to be a threads battle :)
JiiPee <no@notvalid.com>: May 18 10:57PM +0100

On 18/05/2017 15:34, Stefan Ram wrote:
> struct board_type : public ::std::vector< position_type >
> {
 
 
Is this a good idea to inherit from a std class? Because I heard /read
its better to do like:
 
struct board_type
 
{
 
::std::vector< position_type > m_board;
 
...
};
 
and use m_board to get access to vector.
"Alf P. Steinbach" <alf.p.steinbach+usenet@gmail.com>: May 19 12:03AM +0200

On 18-May-17 11:57 PM, JiiPee wrote:
 
> ...
> };
 
> and use m_board to get access to vector.
 
Or he could have used private inheritance.
 
 
Cheers!,
 
- Alf
You received this digest because you're subscribed to updates for this group. You can change your settings on the group membership page.
To unsubscribe from this group and stop receiving emails from it send an email to comp.lang.c+++unsubscribe@googlegroups.com.

No comments: