Click here to Skip to main content
15,606,221 members

Comments by BernardIE5317 (Top 66 by date)

BernardIE5317 7-Mar-23 4:06am View    
thank you for directing me to cppreference . i am afraid i am still ignorant of the meaning and use of each of the template arguments i.e. to wit to be specific namely in particular each below :

re/ n i have no idea the meaning or purpose of "degree of recurrence" or how to set it as a function of integral type
re/ m i have no idea the meaning or purpose of "middle word" or how to set it as a function of integral type
re/ r i have no idea its purpose or how to set it as a function of integral type
re/ a i have no idea its purpose or how to set it as a function of integral type
re/ u i have no idea its meaning purpose or how to set it as a function of integral type
re/ d i have no idea its meaning purpose or how to set it as a function of integral type
re/ s i have no idea its meaning purpose or how to set it as a function of integral type
re/ b i have no idea its meaning purpose or how to set it as a function of integral type
re/ t i have no idea its meaning purpose or how to set it as a function of integral type
re/ c i have no idea its meaning purpose or how to set it as a function of integral type
re/ l i have no idea its meaning purpose or how to set it as a function of integral type
re/ f i have no idea its meaning purpose or how to set it as a function of integral type

kindly advise . thank you
BernardIE5317 21-Feb-23 12:55pm View    
thank you for your kind assistance . the full problem is somewhat more than presented . in actuality the complicated cast is a macro so it needs to determine the pointer target type . for some reason it did not work for a pointer stored in an optional . hence my post . i found a work around i.e. to first declare a local variable w/ the stored value then cast it via the macro -Best
BernardIE5317 5-Feb-23 11:22am View    
i did both prior to posting . i know what it is doing . what i do not know is why it is doing it or how to avoid the destructor or if it possible to do so . i can think of no reason for the destructor to be called . in any event i can solve my particular problem via reference counting so i consider this problem closed . i do not know the CP protocol for such situations . do i delete the post . do i post my own solution to "Add your solution here" . ¯\_(ツ)_/¯
BernardIE5317 30-Jan-23 9:04am View    
step one was kindly given you by CPallini .
Perhaps the next step would be step two .
BernardIE5317 27-Jan-23 13:39pm View    
Can you please show us where rand is declared .