C++ can we pass arrays, or other collections on function line?

I’m just trying to pass an array defined on the function line to the constructor for my struct. I’m generating the code based on XML, so it would just make it simpler to generate. I was just wondering if C++ has syntax similar to other languages for doing this. I found some information online that doesn’t work, guess the proposal never went through for the updated standards.

Here’s what I have:



DialogueNodes(FText dialogueFragment, TArray<FName> nextNode)
          : DialogueFragment(dialogueFragment)
          {
	          NextNode.Append(nextNode, sizeof(nextNode)); // Doesn't work for getting sizeof(array) across scope
          }

DialogueNodes(
LOCTEXT("Dialogue26","You about ready to go?"), [TEXT("0x01000003000001D7"), TEXT("0x01000003000001DF")]))

I tried using FName nextnode] and TArray<FName> nextNode, without any success. I also tried surrounding the array memberes with ] and {}. Is there a macro, or something specific to unreal I can use? It looks like std::array<string, count> nextNode would have worked with brackets around members, but I’m pretty sure it’s a bad idea to use stl with Unreal, and I don’t know the size of the array before hand.