Showing only posts tagged derp. Show all posts.

Printf bit me

< 1 Minute Read.

Work­ing on an Un­re­al En­gine 4 project, I had a strage is­sue with their FString::Printf(format, args...) func­tion (which is ba­si­cal­ly just call­ing _vsntprintf).

The fi­nal is­sue was that I was try­ing to …

Live to learn

Just spent a whole hour on a stupid prob­lem:

//... (Storeable is an interface)

          HashMap<String, Class<? extends Storeable>> types = new HashMap<String, Class<? extends Storeable>>();

          //... (object is an instance of a class that implements Storeable)

          types.add(object.getTag(), object.getClass());

          //...

Thought it was a prob­lem with the …