Replication in assignment pattern not working on queue of structure

In reply to rishikpillai90:

The given code worked for me. Note that I had used packed structure. As pointed by Dave, one should use explicit type casting since we need to make sure that the replication fits into self-determined context.