Skip to content

Instantly share code, notes, and snippets.

@dmjio
Created November 24, 2019 21:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dmjio/14adc0232fbc980e376dc74f066171cc to your computer and use it in GitHub Desktop.
Save dmjio/14adc0232fbc980e376dc74f066171cc to your computer and use it in GitHub Desktop.
#include <stdio.h>
#include <iostream>
#include <memory>
typedef std::unique_ptr<int> Ptr;
int main()
{
printf("Hello, world!\n");
std::cout << "hey" << std::endl;
return 0;
}
[nix-shell:~/Desktop/geos]$ aarch64-apple-ios-clang++ main.cpp
main.cpp:5:14: error: no template named 'unique_ptr' in namespace 'std'
typedef std::unique_ptr<int> Ptr;
~~~~~^
1 error generated.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment