wish helps you I'm writing doing a coding assignment for school that requires us to use arrays instead of vectors (the point is to learn about pointers and memory management). The issue I'm having is that I'm unable to delete a pointer returned from a function -- below is an example of what I'm talking about. , There are two mistakes in:
int *rndValue = new int; // instead of int *rndValue = new *int;
return rndValue; // Instead of return bar;
Function not found after manually deleting a function in a SAM CloudFormation stack
I hope this helps . I guess you already learnt the hard way that you should never manually delete resources managed by SAM or CloudFormation. In general, if you just want to change the function, you can just call sam build and sam deploy, and the new version of it will be deployed. There is no need to delete anything. If you need a more advanced workflow, you will need to read blog posts. There is no one right way to do this.